VocalDocscontracts 1.65.0

Read a scenario

GET /v1/prompt-eval-suites/{prompt_eval_suite_id}/scenarios/{scenario_id}

PropertyValue
Operationget_prompt_eval_scenario
GroupPrompt evaluations and experiments
Scopeprompts:read
Scopes of include valuestext needs prompts:read
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read prompts.prompt_eval_scenario.read, when the request names an include value
Released in1.55.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers one scenario with its revision as the ETag (1.55.0); caller is null unless include=text adds it, which makes the read an audited content read.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the prompts:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/prompt-eval-suites/pes_.../scenarios/pesc_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
prompt_eval_suite_idpathPromptEvalSuiteIdyesThe id of an evaluation suite: pes_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
scenario_idpathPromptEvalScenarioIdyesThe id of a scenario of an evaluation suite: pesc_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
includequeryarray of PromptEvalScenarioIncludenoContent classes to add, comma-separated: text answers caller and makes the read an audited content read (1.55.0).

Responses

StatusContent typeShapeError codes
200application/jsonPromptEvalScenario
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is PromptEvalScenario.

FieldTypeRequiredDescription
callerPromptEvalCaller or nullyesThe caller, the content class text: null unless the read names include=text, and null in the answer of a write.
created_atTimestampyes
expectationsarray of ConversationTestExpectationyesThe expectations of a scripted scenario; empty otherwise.
idPromptEvalScenarioIdyes
initial_slotsPromptEvalInitialSlotsnoThe starting slot values (1.63.0); absent from an api before 1.63.0, which a reader treats as none.
kindPromptEvalScenarioKindyes
max_turnsintegeryesThe most Turns a Call of the scenario takes before it is ended.
namestringyesA display name.
object"prompt_eval_scenario"yes
revisionintegeryesCounts writes; returned as the ETag and required in If-Match.
rubricarray of PromptEvalRubricItemyesThe rubric of a simulated scenario; empty otherwise.
suite_idPromptEvalSuiteIdyes
tagsarray of PromptEvalTagyes
tool_mocksarray of PromptEvalToolMockyes
updated_atTimestampyes
variablesPromptEvalVariablesyes