Skip to main content
POST
Cancel a test run

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

test_run_id
string
required

The test run’s id (tr_…).

Response

The run, as it is now

A run of test cases against one or more agents, N tries each. Every try is an attempt.

object
any
test_run_id
string
Example:

"tr_Vb7sT2Lc0aQ3"

name
string
test_set_id
string | null

The test set it ran, or null for a list of test cases.

agents
string[]
Example:
cold
boolean

Chat cases ran with the agents’ procedures hidden (and none written): a baseline to compare a normal run against.

procedure_id
string | null

The procedure the run tests, when it was started for one; its pick of a model is for that procedure.

status
enum<string>

completed once none of its attempts are left.

Available options:
queued,
running,
completed,
cancelled
app_version
string | null

The Eager app version its machines run, or null when it’s whatever each machine has.

Example:

"1.0.28"

agent_version
enum<string> | null

draft: its agents ran their unpublished drafts (each try the draft as it was when the try started). Null: their published versions.

Available options:
draft,
null
agent_versions
object

Per agent id, the version it ran. A run is pinned to the versions live when it was made: one published during the run doesn’t change it. On a run on the drafts, draft is true and base is the version the draft was made from. Null where it isn’t known.

Example:
progress
object

The run’s tries: how many are queued, running, passed, failed or ended in an error.

pass_rate
object

Per agent, from 0 to 1. Errors don’t count against an agent.

Example:
grounded_rate
object

Per agent: the share of its scored chat and browser attempts whose answer was grounded in what its tools returned, or null when there were none.

metadata
object

Your own ids and labels (e.g. a ticket or customer id), returned as given.

Example:
created_at
string<date-time>
started_at
string<date-time> | null
finished_at
string<date-time> | null
variants
object[]

Each of agents: the agent, and the model the run tried it on (models), else null (its own).