create_eval_case
Record an eval case: one piece of an agent's output to be judged. kind is your own name for what was decided or produced, lowercase and optionally dotted…
Record an eval case: one piece of an agent's output to be judged.
kind is your own name for what was decided or produced, lowercase and optionally
dotted (plan.ask, brief). context is what the agent had in front of it and
output what it produced, each as text or an object. When the case is a choice,
pass the open options and the choice the agent took. rationale is the agent's
stated reason. run_id links the run that produced the output; its session and
agent version are recorded with the case. object_ref names what the case is
about (a pull request, a thread), in the form used for signals. Repeating a key
returns the case already recorded under it, unchanged. Judge the case with
add_eval_verdict. Accepts a workspace agent's id or slug.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | |
kind | string | yes | |
context | string | yes | |
output | string | no | |
options | array | no | |
choice | string | no | |
rationale | string | no | |
run_id | string | no | |
session_id | string | no | |
object_ref | string | no | |
key | string | no |