decide
Evaluates content, instructions, or files against yes/no questions and returns calibrated probabilities for QA gates, spelling checks, and consistency or hallucination checks.
Instructions
Decisions API: calibrated probability of "yes" for each yes/no question. Cheap and fast. Great as a QA gate, e.g. "Is the in-image text spelled correctly?" or, with a reference and a generated image, "Is it the same product in both images?" (hallucination/consistency check).
content: text or instructions to evaluate. questions: list of yes/no questions. files: optional files to include. model: default gemini-decision-1.
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": {
"content": "<content>",
"questions": "<questions>"
},
"name": "decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| model | No | ||
| content | Yes | ||
| questions | Yes |