Skip to content

Promote a stored trace to an agent eval case

POST
/v1/agent-traces/{session_id}/promote
curl --request POST \
--url https://api.aerandil.com/v1/agent-traces/example/promote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "case_name": "example" }'

Mints an agent_eval_case from the trace (design D8): the task comes from the run.started row, the graders from observed behaviour (run.completes plus run.proposes per action routed through propose_action). Requires traces:write.

session_id
required
string
Media typeapplication/json
object
case_name

Suite-unique case name; defaults to {agent}_{session prefix}.

string
Examplegenerated
{
"case_name": "example"
}

Eval case minted

Media typeapplication/json
object
agent_eval_case_id
string format: uuid
case_name
string
graders
Array<object>
object
source_session_id
string
Examplegenerated
{
"agent_eval_case_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"case_name": "example",
"graders": [
{}
],
"source_session_id": "example"
}

No trace stored for the session

Trace lacks a run.started row