Cancel an eval run
PreviewInspect agent quality, health, observers, semantic reports and notifications.
/v1/evals/{eval_id}/runs/{run_id}/cancelSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Prefixed public identifier
Responses
200Success
Success
An eval run: one execution of all/some cases.
object
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.
When the run finished.
When the run was created.
Dataset version (the eval’s version) the run was created from.
The experiment this run is a variant of.
Only run cases matching these tags.
External identifier (evalrun_<32-hex>).
Spending cap in USD. Once the run’s agents and graders have spent it, running turns stop and remaining cases are skipped.
Model override for this run.
Case results (populated on detail view).
Result of a single case within a run.
object
Collected session file contents keyed by artifact name.
Case name (denormalized for display).
When the result was created.
Error message if errored.
The case this result is for.
External identifier (evalresult_<32-hex>).
Token usage.
Execution time in milliseconds.
External scorer metadata captured during deferred write-back.
Output tokens used.
Per-scorer results.
Session created for this case (browsable in UI).
Execution status of the case.
Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Which repetition of the case this result is, from 0.
Turn count.
When the result was last updated.
Whether everruns executed this run (internal) or it was imported from
an external eval system (external).
When the run started executing.
Run lifecycle status.
Aggregate metrics (set on completion).
object
Mean case latency in milliseconds.
Mean score across cases, 0.0 to 1.0.
Mean agent turns per case.
Distinct cases in the run.
Cases that passed in at least one trial (pass@k).
Cases that passed in every trial (pass^k).
Number of cases that errored.
Number of cases that failed.
Fraction of cases that passed, 0.0 to 1.0.
Number of cases that passed.
Total number of cases in the run.
What the run spent in USD: the agents’ model calls plus grading. Absent on imported runs, whose cost is in their own metrics.
Total input tokens across cases.
Total output tokens across cases.
Repetitions per case. total counts every repetition.
Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
How many times each case runs; results carry their trial number.
What triggered this run.
When the run was last updated.
The variant’s label within its experiment.
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