Pick one from a list
/choice
Selects the best option from your choices list. Returns the chosen label,
P(choice), and the full distribution over all options.
At least 2 choices are required. More than 26 is rejected (422).
Body Parameters
choices: array of unknown
The options to choose from (2–26 items).
question: string
The question to decide.
allow_abstain: optional boolean
When true (default), the model may abstain if it lacks confidence.
When false, abstention is replaced by the best-effort answer.
domain: optional string
Optional domain hint for specialized few-shot behavior (e.g., finance).
state: optional string
Text context for the decision. May be empty when images or documents carry the context.
think: optional boolean
Whether to allow a reasoning trace before deciding. Only honored in fast
mode; ignored for deep. Set to false for lowest latency.
Returns
Pick one from a list
curl https://api.articul8.ai/bivia/choice \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"choices": [
"billing",
"refunds",
"technical"
],
"question": "Which team handles this?"
}'
{
"evidence": {
"spans": [
{
"end": 0,
"start": 0,
"text": "text"
}
]
},
"latency_ms": 0,
"mode": "fast",
"model": "dec-1",
"status": "answered",
"thought": true,
"type": "decide",
"value": {},
"verification": {
"performed": true,
"result": "passed"
},
"abstain_reason": "low_confidence",
"billable_tokens": 0,
"distribution": {
"foo": 0
},
"document_notes": [
{
"document": "document",
"status": "included",
"chars": 0,
"reason": "reason",
"tokens": 0,
"truncated": true
}
],
"document_tokens": 0,
"grounded": true,
"image_tokens": 0,
"input_tokens": 0,
"probability": 0,
"think_allowed": true
}Returns Examples
{
"evidence": {
"spans": [
{
"end": 0,
"start": 0,
"text": "text"
}
]
},
"latency_ms": 0,
"mode": "fast",
"model": "dec-1",
"status": "answered",
"thought": true,
"type": "decide",
"value": {},
"verification": {
"performed": true,
"result": "passed"
},
"abstain_reason": "low_confidence",
"billable_tokens": 0,
"distribution": {
"foo": 0
},
"document_notes": [
{
"document": "document",
"status": "included",
"chars": 0,
"reason": "reason",
"tokens": 0,
"truncated": true
}
],
"document_tokens": 0,
"grounded": true,
"image_tokens": 0,
"input_tokens": 0,
"probability": 0,
"think_allowed": true
}