Skip to main content
GET
Get a test case

Authorizations

Authorization
string
header
required

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

Path Parameters

test_case_id
string
required

The test case’s id (tc_…) or its key (e.g. DSP-01).

Response

OK

A request to test an agent on, and how to tell the answer or fix is right: a chat, a browser task, or a problem on a desktop machine (runs_on).

object
any
test_case_id
string
Example:

"tc_8Kq2mZ0aLp4x"

key
string | null

Your own id for the case, unique in the org: 1 to 64 of A-Za-z0-9._-, not starting with tc_. Every {test_case_id} in the API also takes it.

Pattern: ^(?!tc_)[A-Za-z0-9._-]{1,64}$
Example:

"DSP-01"

name
string
Required string length: 1 - 200
Example:

"Apps switched to dark mode"

prompt
string

Chat cases: the person’s first message. Browser and machine cases: the task’s prompt.

Required string length: 1 - 8000
Example:

"All my windows suddenly went black. How do I get the white back?"

start_state
string

Desktop machine cases (required for them): the machine each try starts from. Null for chat and browser cases.

Example:

"win10-22h2"

setup_script
string | null

Runs at the start of every try, elevated, as the signed-in user: it breaks the machine the way the case needs.

Maximum string length: 100000
success
object

How to tell the problem is fixed. An attempt passes only when each one it has passes.

customer
object | null

The simulated customer. Null: the test set’s customer, else a built-in default.

operator
object
limits
object
runs_on
string

chat: a conversation with the agent, on Eager’s servers. browser: one task on a fresh cloud browser from start_url. vm (the default), or one of your runners’ labels: a desktop machine. Chat and browser cases are judged on the answer (expected, success.rubric) and whether it’s grounded; machine cases on success.check_script and/or the rubric.

Example:

"vm"

category
string | null
Example:

"Display & graphics"

tags
string[]
Maximum array length: 50
Maximum string length: 64
Example:
metadata
object

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

Example:
created_at
string<date-time>
updated_at
string<date-time>
must_visit
string[]

Chat and browser cases: sites the answer must come from, by host (a.com|b.com for either; subdomains count). An attempt that didn’t open one in a browser task fails, whatever the judge said.

Maximum array length: 10
Example:
expected
string | null

Chat and browser cases: the right answer, in plain words. The judge passes an answer that has its facts. A chat or browser case needs expected, a rubric, or both.

Maximum string length: 2000
messages
string[]

Chat cases: follow-up messages, sent in order after the prompt, each once the agent has replied.

Maximum array length: 10
Maximum string length: 8000
start_url
string<uri> | null

Browser cases: where the browser opens.

procedure_id
string | null

The procedure this case checks (prc_…, one of the agent's procedures). The procedure then shows its evals: its latest run of them, and whether that run tested its current revision.

Example:

"prc_4mJx0aQe1"

inputs
object[]

Sets of values for the case's {placeholders} (a procedure's dynamic variables, like {mtm}): names are letters, digits and _. Each set runs as its own tries (a run's tries per case are multiplied by the sets): {name} in prompt, messages, expected, success.rubric and start_url is filled from the set, and the simulated customer knows the set as facts.

Maximum array length: 50
Example:
objects
string[]

Ids of the AI ontology's objects (types and kinds) the case exercises, like device or post_warranty. Left out, the ontology fills it in within a minute: from the procedure the case is tied to, else by reading the case. Results of a run are also grouped by them (by_object).