Every named question contains a type and instructions. Each result appears under the same name in answers.
| Primitive | Use it for | Answer field | Additional fields |
|---|---|---|---|
| Choice | A category from a finite list | choice | probabilities, confidence |
| Score | A position on an ordered scale | score | legend, probabilities, confidence |
| Noul | The probability of a yes answer | noul | probabilities, confidence |
| Box | A region in an image | box | top, left, bottom, right as fractions |
| Span | Matching text passages in state | spans | path, start, end, text and per-match confidence |
Ask several questions
Use a new key for each decision and reuse the same state. If a later question needs an earlier result, issue a second request that explicitly includes that result.
{
"model": "ngila-judge",
"state": "My card was charged twice. Please refund one charge.",
"questions": {
"duplicate": {
"type": "noul",
"instructions": "Does the customer report a duplicate charge?"
},
"refund": {
"type": "noul",
"instructions": "Is the customer asking for a refund?"
}
}
}Write one question per decision
A combined question about urgency, eligibility, and routing can become three named questions. Each answers one thing against the same evidence. Apply the workflow order in code after the answers arrive.
Make the requested judgment specific
Name the field or document section to inspect and describe what qualifies. Give neighboring Choice options distinct meanings. Give Score levels observable criteria that reviewers can apply consistently.