Answer a typed question set about some context
decideAnswer typed questions about state in one pass, returning calibrated answers and a contract grade so agents act only when auto_execute.
Instructions
Answer a typed question set about state in one forward pass.
Returns calibrated answers plus a contract directive. Branch on
contract.grade: act only when it is auto_execute. Compose a preset
with inline questions to answer both in the same pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Hint the state's language to skip detection (e.g. 'zh', 'en') | |
| task | No | Force the typed-decisions checkpoint for its four workflows | |
| model | No | Force a checkpoint: english | multilingual | typed-decisions | |
| state | Yes | Context to decide about: a string, or an object/list for structured input (code, ticket, diff, agent trace, tool result). Include the raw material, not a summary of it. | |
| preset | No | Named question set: code_change_risk, support_triage, input_guard, routing, typed_decisions_agent_trace | |
| questions | No | Questions to answer, keyed by question id. Each: {kind: choice|score|yes_no, instructions, criteria, weight?}. Choice criteria: {label: when-to-pick}. Score criteria: ordered level list. yes_no criteria: {true: statement-that-should-hold}. | |
| threshold | No | Confidence required to grade an answer auto_execute: a number in [0,1] or a named level (trivial=0.60, low=0.70, normal=0.80, high=0.90, critical=0.95). Defaults to the server's normal level. | |
| use_cache | No | Reuse an identical in-process answer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Overall grade; act autonomously only when this is auto_execute | |
| usage | No | ||
| cached | No | True when served from the in-process cache | |
| answers | Yes | ||
| routing | Yes | ||
| summary | Yes | ||
| contract | Yes | Directive: overall grade, per-question grades, and the reasons for them | |
| autonomous | Yes | True when every answer cleared the auto-execute bar | |
| latency_ms | Yes | Server-side inference time | |
| requires_human | Yes |