API reference
Judge
POST /v1/agents/judge. Check recorded turns against criteria you choose now (research preview).
View as MarkdownChecks what Sai did in one or more turns against criteria you choose now, without running anything again. Use it to check old runs against a new rule, or to get evidence for repairing learned code. A judgement never changes the turns it judged.
Research preview: the request and response may change.
Request
POST /v1/agents/judgejson
{
"turns": ["turn_vzjz62w7j7jvOilZ6zBL"],
"criteria": [
{
"id": "title",
"check": "The agent reported the title of the top story",
"returnEvidence": true
}
]
}The judge reads the turns' steps, their output and the final answers. It does not see screenshots yet.
Response
200:
json
{
"judgementId": "judgement_8LmQ2rT0bV",
"verdict": "passed",
"summary": "1 of 1 checks passed.",
"task": "Open https://news.ycombinator.com and read the title of the top story",
"criteria": [
{
"id": "title",
"check": "The agent reported the title of the top story",
"verdict": "passed",
"score": 0.97,
"evidence": "The final answer gives the title \"Show HN: ...\" read from the front page."
}
],
"turns": ["turn_vzjz62w7j7jvOilZ6zBL"],
"usage": { "inputTokens": 5120, "outputTokens": 140 },
"researchPreview": true
}Treat the verdict as advice: text on the screen can try to steer a model judge.
Read a judgement later
GET /v1/agents/judge/{judgementId}