Skip to content
Context docs
Evals API

Runs

Serverhttps://context.example.com/api/v1/evals

A run is one execution of a benchmark over each linked dataset's latest saved version. It freezes the benchmark's axes when it starts and runs every dataset task once per cell, where a cell is one value of the tested axis at one repeat (1 to 5 repeats). Its status is PENDING, RUNNING or EVALUATING while it works, then COMPLETED, FAILED or STOPPED; a stored status this API does not recognize reads UNKNOWN.


List an evaluation's runs, newest first

GET
https://context.example.com/api/v1/evals
/benchmarks/{evaluationId}/runs
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Returns the benchmark's runs, newest first, each with the axes and cells it froze, its status and its progress counts. For a run's results, use GET /runs/{runId}/status.

List an evaluation's runs, newest first › path Parameters

evaluationId
​string · minLength: 1 · required

Evaluation identifier

Evaluation identifier

List an evaluation's runs, newest first › Responses

Successful response

​object[]

Runs belonging to the evaluation

One execution of an evaluation: the axes it fixed when it started, its cells, and its progress
id
​string · minLength: 1 · required

Unique run identifier

orgId
​string · minLength: 1 · required

Organization that owns this run

evaluationId
​string · minLength: 1 · required

Evaluation being run

topicId
​string | null · minLength: 1 · required

Workflow this run belongs to; null for a run started from the app's evaluations view

evaluationVersionId
​string | null · minLength: 1 · required

Evaluation version this run uses; null only for runs created before evaluation versions existed

runById
​string | null · minLength: 1 · required

User who started this run

​required

The axes a run executed, fixed when it started, with every model resolved and every skill version fixed. Reports use these, not the evaluation's current settings.

​object[] · minItems: 1 · required

The run's cells, ordered by value (in the axes' order), then by repeat within each value: number of values x runs per task

taskCount
​integer · min: 0 · required

Total number of (task x cell) pairs to run

completedCount
​integer · min: 0 · required

Number of (task x cell) pairs completed so far

concurrency
​integer · min: 1 · max: 100 · required

Tasks run at once for this run (min 1, max 100 or the deployment's lower limit).

judgeConcurrency
​integer · min: 1 · max: 100 · required

Agent judges run at once for this run, across every task (min 1, max 100 or the deployment's lower limit). LLM judges and rules do not count.

succeededCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as succeeded

failedCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as failed

cancelledCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as canceled

judgedCount
​integer | null · min: 0 · required

Result rows with a score: a judge score and no task error, or, on a criteria-graded run, a task where at least one criterion reached a verdict. Null until the run's totals are computed.

passedCount
​integer | null · min: 0 · required

Tasks the judge passed. Null for an evaluation scored on a 0 to 1 scale (no pass or fail), and null until the run's totals are computed.

maskedCount
​integer | null · min: 0 · required

Result rows left out of the score: the judge gave no score or the task errored, or, on a criteria-graded run, none of the task's criteria reached a verdict (they could not run). Null until the run's totals are computed.

avgScore
​number | null · required

Mean judged score on the standard 0 to 1 scale. Null until the run's totals are computed, or when nothing was judged.

heldOutJudgedCount
​integer | null · min: 0 · required

judgedCount for the run's held-out tasks only (tasks the system never learns from). Null until the run's totals are computed, or when the totals come from older stored results that do not record which tasks are held out.

heldOutAvgScore
​number | null · required

avgScore for the run's held-out tasks only, on the same 0 to 1 scale. Null when heldOutJudgedCount is null or 0.

costUsd
​number | null · required

Task cost plus judge cost for the whole run, in dollars (USD). Null when any part is unknown (never a partial sum).

resolvedMismatch
​boolean · required

True when any dispatch was served by a different model than its cell asked for. This is a notice only: the run's result and every list, trend, and chart still show its score.

resolvedUnknownCount
​integer | null · min: 0 · required

Dispatches whose serving model could not be identified from billing when the run finished. This is not a mismatch, only unknown, and it never holds back the run's result. Null until the run's totals are computed.

costUnknownReason
​string | null · enum · required

Why costUsd is null on an ended run, by order of precedence. Null when the cost is known, while the run is still going, and on an ended run whose totals have not been computed.

Enum values:
ledger_not_final
device_calls_unbounded
no_rows
unrated_rows
warehouse_session_missing
judge_cost_unknown
ledger_reroll_failed
startedAt
​string | null · date-time · required

When the run started

completedAt
​string | null · date-time · required

When the run finished, whether it succeeded or failed

error
​string | null · required

Error message if the run failed

stopRequestedAt
​string | null · date-time · required

When someone asked to stop the run, or null if nobody did. It is set while the run is still going: the run counts as stopping until its status is STOPPED.

stopRequestedByUserId
​string | null · minLength: 1 · required

Who asked to stop the run: the person, or the person an agent acts for when an agent asked. Null when nobody did.

createdAt
​string · date-time · required

Creation timestamp

updatedAt
​string · date-time · required

Last update timestamp

status
​string · enum

Current run status, or UNKNOWN when the stored value is not one of the allowed values

Enum values:
PENDING
RUNNING
EVALUATING
COMPLETED
FAILED
STOPPED
UNKNOWN

Start a run

POST
https://context.example.com/api/v1/evals
/benchmarks/{evaluationId}/runs
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Runs the Evaluation's axes as they stand over each linked dataset's latest saved version, as you, and answers the run (its id is what GET /runs/{runId}/status reads). A run costs money: send an Idempotency-Key so a retry after a timeout answers the same run instead of starting a second one. Refused 409 datasets_unsaved when the linked datasets hold tasks only in unsaved changes.

Start a run › path Parameters

evaluationId
​string · minLength: 1 · required

Evaluation identifier

Benchmark to execute

Start a run › Headers

Idempotency-Key
​string · maxLength: 255

A key you choose for this request (a UUID works; at most 255 characters; a blank one is refused 400, code idempotency_key_empty). A retry with the same key and the same body answers the first success again instead of acting twice; kept 24 hours. Send one on every create and run start you might retry.

Start a run › Request Body

Input for starting a run. A run executes the Evaluation's axes exactly as they stand, as the caller: it cannot change them. Refused with AxesRefusalSchema data when the caller cannot run one of the Evaluation's agents, an agent would stop to ask for approval, or an agent cannot run a model
runsPerTask
​integer · min: 1 · max: 5

Times each task runs for each value of the tested axis (1-5, default 1)

Default: 1
concurrency
​integer · min: 1 · max: 100

Tasks at once for this run. Omit to use this deployment's default: a quarter of its limit, at most 10 (benchmark.get's runConcurrency gives the numbers). Range: 1-100. The limit is the deployment's Evals sandbox cap, or its sandbox provider's cap when lower: it and judgeConcurrency together may not exceed it; above it the run is refused.

judgeConcurrency
​integer · min: 1 · max: 100

Agent judges at once for this run, across every task (LLM judges and rules are not counted). Omit to use this deployment's default: twice the tasks at once, at most 20, within what the deployment's limit leaves. Range: 1-100.

​

Every task (default) or a seeded sample; the draw is frozen on the run's version

Default: {"kind":"all"}

Start a run › Responses

Success. A retry with the same Idempotency-Key and the same request answers this again, with Idempotent-Replayed: true.

One execution of an evaluation: the axes it fixed when it started, its cells, and its progress
id
​string · minLength: 1 · required

Unique run identifier

orgId
​string · minLength: 1 · required

Organization that owns this run

evaluationId
​string · minLength: 1 · required

Evaluation being run

topicId
​string | null · minLength: 1 · required

Workflow this run belongs to; null for a run started from the app's evaluations view

evaluationVersionId
​string | null · minLength: 1 · required

Evaluation version this run uses; null only for runs created before evaluation versions existed

runById
​string | null · minLength: 1 · required

User who started this run

​required

The axes a run executed, fixed when it started, with every model resolved and every skill version fixed. Reports use these, not the evaluation's current settings.

​object[] · minItems: 1 · required

The run's cells, ordered by value (in the axes' order), then by repeat within each value: number of values x runs per task

taskCount
​integer · min: 0 · required

Total number of (task x cell) pairs to run

completedCount
​integer · min: 0 · required

Number of (task x cell) pairs completed so far

concurrency
​integer · min: 1 · max: 100 · required

Tasks run at once for this run (min 1, max 100 or the deployment's lower limit).

judgeConcurrency
​integer · min: 1 · max: 100 · required

Agent judges run at once for this run, across every task (min 1, max 100 or the deployment's lower limit). LLM judges and rules do not count.

succeededCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as succeeded

failedCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as failed

cancelledCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as canceled

judgedCount
​integer | null · min: 0 · required

Result rows with a score: a judge score and no task error, or, on a criteria-graded run, a task where at least one criterion reached a verdict. Null until the run's totals are computed.

passedCount
​integer | null · min: 0 · required

Tasks the judge passed. Null for an evaluation scored on a 0 to 1 scale (no pass or fail), and null until the run's totals are computed.

maskedCount
​integer | null · min: 0 · required

Result rows left out of the score: the judge gave no score or the task errored, or, on a criteria-graded run, none of the task's criteria reached a verdict (they could not run). Null until the run's totals are computed.

avgScore
​number | null · required

Mean judged score on the standard 0 to 1 scale. Null until the run's totals are computed, or when nothing was judged.

heldOutJudgedCount
​integer | null · min: 0 · required

judgedCount for the run's held-out tasks only (tasks the system never learns from). Null until the run's totals are computed, or when the totals come from older stored results that do not record which tasks are held out.

heldOutAvgScore
​number | null · required

avgScore for the run's held-out tasks only, on the same 0 to 1 scale. Null when heldOutJudgedCount is null or 0.

costUsd
​number | null · required

Task cost plus judge cost for the whole run, in dollars (USD). Null when any part is unknown (never a partial sum).

resolvedMismatch
​boolean · required

True when any dispatch was served by a different model than its cell asked for. This is a notice only: the run's result and every list, trend, and chart still show its score.

resolvedUnknownCount
​integer | null · min: 0 · required

Dispatches whose serving model could not be identified from billing when the run finished. This is not a mismatch, only unknown, and it never holds back the run's result. Null until the run's totals are computed.

costUnknownReason
​string | null · enum · required

Why costUsd is null on an ended run, by order of precedence. Null when the cost is known, while the run is still going, and on an ended run whose totals have not been computed.

Enum values:
ledger_not_final
device_calls_unbounded
no_rows
unrated_rows
warehouse_session_missing
judge_cost_unknown
ledger_reroll_failed
startedAt
​string | null · date-time · required

When the run started

completedAt
​string | null · date-time · required

When the run finished, whether it succeeded or failed

error
​string | null · required

Error message if the run failed

stopRequestedAt
​string | null · date-time · required

When someone asked to stop the run, or null if nobody did. It is set while the run is still going: the run counts as stopping until its status is STOPPED.

stopRequestedByUserId
​string | null · minLength: 1 · required

Who asked to stop the run: the person, or the person an agent acts for when an agent asked. Null when nobody did.

createdAt
​string · date-time · required

Creation timestamp

updatedAt
​string · date-time · required

Last update timestamp

status
​string · enum

Current run status, or UNKNOWN when the stored value is not one of the allowed values

Enum values:
PENDING
RUNNING
EVALUATING
COMPLETED
FAILED
STOPPED
UNKNOWN

Get a run

GET
https://context.example.com/api/v1/evals
/runs/{runId}
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Returns one run: the axes and cells it froze when it started, its status, its progress counts and its scores. The run is visible when its benchmark is; for its results as the Runs table shows them, use GET /runs/{runId}/status.

Get a run › path Parameters

runId
​string · minLength: 1 · required

Run identifier

Run identifier

Get a run › Responses

Successful response

One execution of an evaluation: the axes it fixed when it started, its cells, and its progress
id
​string · minLength: 1 · required

Unique run identifier

orgId
​string · minLength: 1 · required

Organization that owns this run

evaluationId
​string · minLength: 1 · required

Evaluation being run

topicId
​string | null · minLength: 1 · required

Workflow this run belongs to; null for a run started from the app's evaluations view

evaluationVersionId
​string | null · minLength: 1 · required

Evaluation version this run uses; null only for runs created before evaluation versions existed

runById
​string | null · minLength: 1 · required

User who started this run

​required

The axes a run executed, fixed when it started, with every model resolved and every skill version fixed. Reports use these, not the evaluation's current settings.

​object[] · minItems: 1 · required

The run's cells, ordered by value (in the axes' order), then by repeat within each value: number of values x runs per task

taskCount
​integer · min: 0 · required

Total number of (task x cell) pairs to run

completedCount
​integer · min: 0 · required

Number of (task x cell) pairs completed so far

concurrency
​integer · min: 1 · max: 100 · required

Tasks run at once for this run (min 1, max 100 or the deployment's lower limit).

judgeConcurrency
​integer · min: 1 · max: 100 · required

Agent judges run at once for this run, across every task (min 1, max 100 or the deployment's lower limit). LLM judges and rules do not count.

succeededCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as succeeded

failedCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as failed

cancelledCount
​integer · min: 0 · required

Number of (task x cell) pairs whose task ended as canceled

judgedCount
​integer | null · min: 0 · required

Result rows with a score: a judge score and no task error, or, on a criteria-graded run, a task where at least one criterion reached a verdict. Null until the run's totals are computed.

passedCount
​integer | null · min: 0 · required

Tasks the judge passed. Null for an evaluation scored on a 0 to 1 scale (no pass or fail), and null until the run's totals are computed.

maskedCount
​integer | null · min: 0 · required

Result rows left out of the score: the judge gave no score or the task errored, or, on a criteria-graded run, none of the task's criteria reached a verdict (they could not run). Null until the run's totals are computed.

avgScore
​number | null · required

Mean judged score on the standard 0 to 1 scale. Null until the run's totals are computed, or when nothing was judged.

heldOutJudgedCount
​integer | null · min: 0 · required

judgedCount for the run's held-out tasks only (tasks the system never learns from). Null until the run's totals are computed, or when the totals come from older stored results that do not record which tasks are held out.

heldOutAvgScore
​number | null · required

avgScore for the run's held-out tasks only, on the same 0 to 1 scale. Null when heldOutJudgedCount is null or 0.

costUsd
​number | null · required

Task cost plus judge cost for the whole run, in dollars (USD). Null when any part is unknown (never a partial sum).

resolvedMismatch
​boolean · required

True when any dispatch was served by a different model than its cell asked for. This is a notice only: the run's result and every list, trend, and chart still show its score.

resolvedUnknownCount
​integer | null · min: 0 · required

Dispatches whose serving model could not be identified from billing when the run finished. This is not a mismatch, only unknown, and it never holds back the run's result. Null until the run's totals are computed.

costUnknownReason
​string | null · enum · required

Why costUsd is null on an ended run, by order of precedence. Null when the cost is known, while the run is still going, and on an ended run whose totals have not been computed.

Enum values:
ledger_not_final
device_calls_unbounded
no_rows
unrated_rows
warehouse_session_missing
judge_cost_unknown
ledger_reroll_failed
startedAt
​string | null · date-time · required

When the run started

completedAt
​string | null · date-time · required

When the run finished, whether it succeeded or failed

error
​string | null · required

Error message if the run failed

stopRequestedAt
​string | null · date-time · required

When someone asked to stop the run, or null if nobody did. It is set while the run is still going: the run counts as stopping until its status is STOPPED.

stopRequestedByUserId
​string | null · minLength: 1 · required

Who asked to stop the run: the person, or the person an agent acts for when an agent asked. Null when nobody did.

createdAt
​string · date-time · required

Creation timestamp

updatedAt
​string · date-time · required

Last update timestamp

status
​string · enum

Current run status, or UNKNOWN when the stored value is not one of the allowed values

Enum values:
PENDING
RUNNING
EVALUATING
COMPLETED
FAILED
STOPPED
UNKNOWN

Get a run's status

GET
https://context.example.com/api/v1/evals
/runs/{runId}/status
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

The run as the evaluation's Runs table shows it (its result, each cell's result, the best of them, how many cells are at or above the threshold, cost per task, criteria that errored), plus who started it, the evaluation's current threshold, the per-cell stats (total, succeeded, failed, mean score), and the tasks waiting now, by reason. For per-task rows, use GET /runs/{runId}/tasks; for one task's full record, use GET /runs/{runId}/tasks/{taskId}.

Get a run's status › path Parameters

runId
​string · minLength: 1 · required

Run identifier

Run identifier

Get a run's status › Responses

Successful response

Run status: the run's row as the Runs table shows it, the threshold it is measured against, its aggregate stats, and its waiting counts
​object · required

The run's row as the Runs table shows it, with the display names of who started it and who asked to stop it

threshold
​integer | null · min: 0 · max: 100 · required

The evaluation's current pass threshold, which run.aboveThresholdCount counts against. A cell passes when its run.cellResults valuePct is at or above it. Null when the evaluation has no threshold.

​object[] · required

Per-cell aggregate stats for this run, one entry per cell, from its settled tasks (the same figures GET /runs/{runId}/tasks reports)

​object · required

Cells of the run waiting now, by reason (the same figures GET /runs/{runId}/tasks reports)


List a run's task results

GET
https://context.example.com/api/v1/evals
/runs/{runId}/tasks
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

The tasks of one cell in the run's order, each with its score, its criteria outcomes (pending, completed with a 0 to 1 score, error, or didn't run), a preview of its recorded answer, its cost and latency, and why it is not running when it is not. Also includes the run's whole-run figures (stats per cell, waiting counts). To page, pass the previous page's nextCursor as cursor; a cursor outside the run's pinned task set is rejected.

List a run's task results › path Parameters

runId
​string · minLength: 1 · required

Run identifier

Run identifier

List a run's task results › query Parameters

cellId
​string · minLength: 1 · required

One of this run's cells

cursor
​string · minLength: 1

Last task identifier from the previous page of this run (its nextCursor)

limit
​integer · min: 1 · max: 50

Tasks per page

Default: 50

List a run's task results › Responses

Successful response

​object · required

The run, with the display names of who started it and who asked to stop it

​required

State of the evaluation version pinned for this run

resultContract
​string · enum · required

Which recorded-result export this run supports

Enum values:
native
legacy
unavailable
pinnedCriteriaCount
​integer | null · min: 0 · required

Number of criteria the run's version pins across its tasks; 0 for a run nothing could grade; null for a run not graded by criteria

​object[] · required

Whole-run totals, one per cell of the run in cell order; never an average over the current page

statsAvailable
​boolean · required

False when results for this run cannot be read

​object[] · maxItems: 50 · required
totalCount
​integer · min: 0 · required

Number of tasks known to be in this run

nextCursor
​string | null · minLength: 1 · required
​object · required

Tasks across every cell of the run waiting now, by reason (alongside the run's settled and total figures)


Get one task's result

GET
https://context.example.com/api/v1/evals
/runs/{runId}/tasks/{taskId}
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

The task's full record, as the full export writes it: the pinned task text, the complete recorded answer (or why there is none), every criterion's settled outcome with its reasoning, the task's cost, its criteria cost, and its latency. A task outside the run's pinned task set is rejected.

Get one task's result › path Parameters

runId
​string · minLength: 1 · required

Run identifier

Run identifier

taskId
​string · minLength: 1 · required

Task identifier

A task in this run's pinned task set

Get one task's result › query Parameters

cellId
​string · minLength: 1 · required

One of this run's cells

Get one task's result › Responses

Successful response

One task's full record on one cell, as the full export writes it
taskId
​string · minLength: 1 · required
cellId
​string · minLength: 1 · required
position
​integer · required
heldOut
​boolean · required

The task's Split in the dataset version this run pinned: true is Validation (scored separately, never learned from), false is Train. False too for a run that pinned no dataset version: it recorded no Split.

​required

Full pinned prompt and expected text, or an explicit state saying the snapshot is missing

​required

The answer from the agent's registered command itself, never a later turn or text taken from elsewhere in the task

result
​object | null · required

All settled check outcomes with full reasoning; null until the task settles

costUsd
​number | null · min: 0 · required

Cost of the task run plus its checks, set only when both are final and known

criteriaCostUsd
​number | null · min: 0 · required

The checks' cost: LLM judges' charges plus the billed cost of agent judges' task runs; null while any part is unknown or the task has not settled

latencyMs
​number | null · min: 0 · required

Duration of this registered command's turn

taskPath
​string | null · required
notRunning
​object | null · required

Set when the run ended before this task settled; an export never shows a live wait

stoppedBeforeFinish
​boolean · required

A person stopped the run before this task finished: it didn't run, or it settled with what the stop canceled. Not a failure. False for a task that settled on its own (even with an error) and on a run that completed or failed.