Console ↗

Primitives (Questions)

Every named question contains a type and instructions. Each result appears under the same name in answers.

PrimitiveUse it forAnswer fieldAdditional fields
ChoiceA category from a finite listchoiceprobabilities, confidence
ScoreA position on an ordered scalescorelegend, probabilities, confidence
NoulThe probability of a yes answernoulprobabilities, confidence
BoxA region in an imageboxtop, left, bottom, right as fractions
SpanMatching text passages in statespanspath, 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.