VocalDocscontracts 1.65.0

Read a run of a decision corpus

GET /v1/agents/{agent_id}/decision-corpora/{corpus_id}/runs/{run_id}

PropertyValue
Operationget_decision_run
GroupDecision corpora
Scopeagents:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A metadata read; a run holds numbers only.
Released in1.58.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers the run with its status and, once completed, precision and recall per label over the sweep with the proposed thresholds (1.58.0).

Request

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

curl "$VOCAL_API/v1/agents/agt_.../decision-corpora/dcp_.../runs/dcr_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
agent_idpathAgentIdyesThe id of an Agent: agt_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
corpus_idpathDecisionCorpusIdyesThe id of a decision corpus: dcp_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
run_idpathDecisionRunIdyesThe id of an evaluation run of a decision corpus: dcr_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

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

Fields of the 200 answer

The shape is DecisionRun.

FieldTypeRequiredDescription
agent_idAgentIdyes
agent_versionintegeryesThe active version whose chain ran.
casesintegeryesThe cases sent.
completed_atTimestamp or nullyes
corpus_idDecisionCorpusIdyes
corpus_versionintegeryes
created_atTimestampyes
created_byActorRefyes
error_codestring or nullyesWhy a failed run failed, such as provider_unavailable; null otherwise.
idDecisionRunIdyes
job_idJobIdyes
model_versionstringyes
object"decision_run"yes
precision_targetnumberyesThe precision a proposed threshold must meet, 0.9 when omitted (a target).
providerProviderIdyes
question_setQuestionSetKeyyes
resultsarray of DecisionQuestionResultyesPer question, once completed; empty before.
statusDecisionRunStatusyes
usageDecisionRunUsage or nullnoWhat the run used (1.59.0), once its result landed, completed or failed; null while it is queued or running. Absent from an api before 1.59.0, which a reader treats as null.