Evaluate content
judgeAsk a judgment model for decisions your code or your answer can act on: it returns a typed answer with a probability per option and a confidence, never prose. Three question types. 'choice' picks one option from a set you define (up to 255). 'score' rates against 2-10 ordered levels you describe. 'yes_no' answers a yes/no as a probability. Ask as many as you want in ONE call — they run in parallel and each extra question costs only its own tokens. Use it instead of reasoning when the judgment repeats over many items (classify these rows, rank these candidates, does this passage answer the question) or when you want a confidence you can branch on: act when it is high, ask the user when it is low. Do NOT use it for anything whose answer is text — it cannot write, explain or summarise. Send the relevant extract as the state, not everything you have: accuracy drops as unrelated content grows. The current judgment model takes a state of up to ~32,000 tokens. It also looks at images you pass with the state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"state": "<state>",
"questions": "<questions>"
},
"name": "judge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | What the questions are about: a string, or an object/array when the material has structure. Send the relevant extract — a sample plus the shape beats the whole payload. | |
| questions | Yes | One entry per question, keyed by a name you choose (it comes back on the answer). Each is {"type": "choice"|"score"|"yes_no", "instructions": "...", "criteria": ...}. criteria is an object of option -> meaning for a choice, an ordered list of level descriptions for a score, and is omitted for a yes_no. | |
| image_attachment_ids | No | Odoo ir.attachment ids of images the questions are also about, e.g. the photo on a delivery or a ticket. PNG, JPEG, WebP or GIF. |