Promote a stored trace to an agent eval case
POST
/v1/agent-traces/{session_id}/promote
const url = 'https://api.aerandil.com/v1/agent-traces/example/promote';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"case_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
case_name
Suite-unique case name; defaults to {agent}_{session prefix}.
string
Examplegenerated
{ "case_name": "example"}Responses
Section titled “Responses”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