Skip to content
Docs
GitHub

Cancel an eval run

Preview

Inspect agent quality, health, observers, semantic reports and notifications.

Public APIRequires the evals feature flag

POST/v1/evals/{eval_id}/runs/{run_id}/cancel

See authentication for credentials and permissions.

eval_id
required
string

Prefixed public identifier

run_id
required
string

Prefixed public identifier

Responses

200Success

Success

Media typeapplication/json

An eval run: one execution of all/some cases.

object
attribution

Provenance for external runs: which system produced them, version, link back, and any environment labels. None for internal runs. Open-vocab JSON so new attribution fields need no schema change.

completed_at

When the run finished.

string | null format: date-time
created_at
required

When the run was created.

string format: date-time
dataset_version

Dataset version (the eval’s version) the run was created from.

integer | null format: int32
experiment_id

The experiment this run is a variant of.

string | null
filter_tags

Only run cases matching these tags.

Array<string> | null
id
required

External identifier (evalrun_<32-hex>).

string
max_cost_usd

Spending cap in USD. Once the run’s agents and graders have spent it, running turns stop and remaining cases are skipped.

number | null format: double
model_override

Model override for this run.

string | null
results

Case results (populated on detail view).

Array<object>

Result of a single case within a run.

object
artifacts

Collected session file contents keyed by artifact name.

object | null
case_name

Case name (denormalized for display).

string | null
created_at
required

When the result was created.

string format: date-time
error_message

Error message if errored.

string | null
eval_case_id
required

The case this result is for.

string
id
required

External identifier (evalresult_<32-hex>).

string
input_tokens

Token usage.

integer | null format: int64
latency_ms

Execution time in milliseconds.

integer | null format: int64
metadata

External scorer metadata captured during deferred write-back.

output_tokens

Output tokens used.

integer | null format: int64
scores

Per-scorer results.

session_id

Session created for this case (browsable in UI).

string | null
status
required

Execution status of the case.

string
Allowed values: pending running passed failed errored timeout skipped
target
One of:
One of:

Session creation parameters (mirrors CreateSessionRequest).

object
agent_id

Agent to work in this session.

string | null
harness_id

Harness for the session. If omitted, org default harness is used.

string | null
harness_name

Addressable harness name (alternative to harness_id).

string | null
max_iterations

Max LLM iterations per turn.

integer | null
model_id

LLM model override.

string | null
system_prompt

System prompt override (prepended to agent prompt).

string | null
type
required
string
Allowed values: session
target_snapshot
One of:
One of:

Session creation parameters (mirrors CreateSessionRequest).

object
agent_id

Agent to work in this session.

string | null
harness_id

Harness for the session. If omitted, org default harness is used.

string | null
harness_name

Addressable harness name (alternative to harness_id).

string | null
max_iterations

Max LLM iterations per turn.

integer | null
model_id

LLM model override.

string | null
system_prompt

System prompt override (prepended to agent prompt).

string | null
type
required
string
Allowed values: session
trial

Which repetition of the case this result is, from 0.

integer format: int32
turns

Turn count.

integer | null format: int32
updated_at
required

When the result was last updated.

string format: date-time
source

Whether everruns executed this run (internal) or it was imported from an external eval system (external).

string
Allowed values: internal external
started_at

When the run started executing.

string | null format: date-time
status
required

Run lifecycle status.

string
Allowed values: pending running completed failed cancelled
summary
One of:

Aggregate metrics (set on completion).

object
avg_latency_ms
required

Mean case latency in milliseconds.

integer format: int64
avg_score
required

Mean score across cases, 0.0 to 1.0.

number format: double
avg_turns
required

Mean agent turns per case.

number format: double
cases

Distinct cases in the run.

integer format: int32
cases_passed_any_trial

Cases that passed in at least one trial (pass@k).

integer format: int32
cases_passed_every_trial

Cases that passed in every trial (pass^k).

integer format: int32
errored
required

Number of cases that errored.

integer format: int32
failed
required

Number of cases that failed.

integer format: int32
pass_rate
required

Fraction of cases that passed, 0.0 to 1.0.

number format: double
passed
required

Number of cases that passed.

integer format: int32
total
required

Total number of cases in the run.

integer format: int32
total_cost_usd

What the run spent in USD: the agents’ model calls plus grading. Absent on imported runs, whose cost is in their own metrics.

number | null format: double
total_input_tokens
required

Total input tokens across cases.

integer format: int64
total_output_tokens
required

Total output tokens across cases.

integer format: int64
trials

Repetitions per case. total counts every repetition.

integer format: int32
target
One of:
One of:

Session creation parameters (mirrors CreateSessionRequest).

object
agent_id

Agent to work in this session.

string | null
harness_id

Harness for the session. If omitted, org default harness is used.

string | null
harness_name

Addressable harness name (alternative to harness_id).

string | null
max_iterations

Max LLM iterations per turn.

integer | null
model_id

LLM model override.

string | null
system_prompt

System prompt override (prepended to agent prompt).

string | null
type
required
string
Allowed values: session
trials

How many times each case runs; results carry their trial number.

integer format: int32
triggered_by
required

What triggered this run.

string
updated_at
required

When the run was last updated.

string format: date-time
variant_label

The variant’s label within its experiment.

string | null

Example

{
"completed_at": "2026-01-15T10:30:00Z",
"created_at": "2026-01-15T10:30:00Z",
"dataset_version": 7,
"experiment_id": "evalexp_01933b5a000070008000000000000001",
"filter_tags": [
"regression",
"nightly"
],
"id": "evalrun_01933b5a000070008000000000000001",
"max_cost_usd": 5,
"model_override": "gpt-6-luna",
"results": [
{
"artifacts": {
"patch": "diff --git a/src/lib.rs b/src/lib.rs"
},
"case_name": "fix-failing-test",
"created_at": "2026-01-15T10:30:00Z",
"error_message": "Session timed out",
"eval_case_id": "evalcase_01933b5a000070008000000000000001",
"id": "evalresult_01933b5a000070008000000000000001",
"input_tokens": 1200,
"latency_ms": 8450,
"output_tokens": 850,
"session_id": "session_01933b5a00007000800000000000001",
"status": "pending",
"target": {
"type": "session"
},
"target_snapshot": {
"type": "session"
},
"trial": 0,
"turns": 3,
"updated_at": "2026-01-15T10:30:00Z"
}
],
"source": "internal",
"started_at": "2026-01-15T10:30:00Z",
"status": "pending",
"summary": {
"avg_latency_ms": 8450,
"avg_score": 0.85,
"avg_turns": 3.2,
"cases": 4,
"cases_passed_any_trial": 4,
"cases_passed_every_trial": 3,
"errored": 1,
"failed": 2,
"pass_rate": 0.75,
"passed": 9,
"total": 12,
"total_cost_usd": 0.42,
"total_input_tokens": 14400,
"total_output_tokens": 10200,
"trials": 3
},
"target": {
"type": "session"
},
"trials": 3,
"triggered_by": "manual",
"updated_at": "2026-01-15T10:30:00Z",
"variant_label": "candidate"
}
404Eval run not found

Eval run not found