Skip to main content
POST
Start a test run

Authorizations

Authorization
string
header
required

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

Body

application/json

Send test_set_id or test_case_ids.

agents
string[]
required

The agents to test, side by side.

Required array length: 1 - 20 elements
test_set_id
string

Run this test set’s cases.

test_case_ids
string[]

Or run these test cases (ids or keys).

repeat
integer

Tries per case for every case.

Required range: 1 <= x <= 20
repeat_by_case
object

Tries for some cases, by id or key. Tries per case: repeat_by_case[case], else repeat, else the set’s per-case repeat, else the set’s repeat, else 1.

Example:
name
string
metadata
object

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

Example:
app_version
string | null
default:latest

The Eager app version every machine in the run runs: latest (the newest release when the run starts, so a release partway through doesn’t mix versions), a version like 1.0.28, or any (or null) to leave each machine with whatever it has, unchecked. Before each attempt the runner installs this version if the machine has another; a machine that still reports a different version is an error (ours, retried, never scored).

Example:

"latest"

agent_version
enum<string> | null

Which versions the agents run. Left out or draft: each agent’s latest draft, its unpublished changes as they are when each try starts (its published version when it has none), so a run tests what you’re editing. published: their published versions. Only admins and API keys can run drafts (a draft can have looser guardrails): draft from anyone else is a 403 with code version_not_allowed, and left out, theirs run the published versions.

Available options:
draft,
published,
null
cold
boolean
default:false

Run chat cases with the agents’ procedures hidden: none listed, find_procedure not offered, tools a procedure unlocks stay locked in the chat, and no procedure written from the run.

models
string[]

Try each agent on each of these models instead of its own: each agent and model is its own column, <agent_id>@<model>, in agents, pass_rate, results' by_agent and the attempts' agent_id. The results then say which to use (recommendation). At most 20 agent and model pairs.

Required array length: 1 - 10 elements
Example:
procedure_id
string

The procedure the run tests (its test cases), from one of the run's agents. The run's pick of a model (recommendation in its results) is then meant for that procedure's model, not the agent's. A rerun keeps it.

Response

OK

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).