Choose between mutually exclusive categories. Read the selected option and the probability assigned to each candidate.
{
"type": "choice",
"instructions": "Which team owns this issue?",
"criteria": {
"Billing": "",
"Account access": "",
"Technical support": ""
}
}Handle uncovered cases
Use an explicit Other or Unknown option when the catalog is incomplete. The probabilities object maps candidate labels to numbers. Keep the selected label intact when passing it to downstream code.
Request structure
The question lives under a stable key in the request’s questions object. State supplies the evidence it evaluates.
{
"model": "ngila-judge",
"state": "The last invoice includes two identical charges.",
"questions": {
"queue": {
"type": "choice",
"instructions": "Which team owns this issue?",
"criteria": {
"Billing": "",
"Account access": "",
"Technical support": ""
}
}
}
}Response structure
Read the matching key under answers. The values below illustrate the fields used in this example.
{
"answers": {
"queue": {
"type": "choice",
"choice": "Billing",
"probabilities": {
"Billing": 0.94,
"Account access": 0.02,
"Technical support": 0.04
},
"confidence": 0.93
}
}
}The selected label is a key from criteria. Read its probability for ranking and use confidence when deciding whether to accept this assignment.