Auto-detect decision type
Analyzes the question and automatically selects the best decision type (boolean, choice, score, etc.) and extracts options when applicable.
Use this when you don't know the answer type in advance. The response
type field tells you which type was selected.
Provide outcomes to constrain the options; otherwise the model infers
them from the question text. At least 2 outcomes are required when provided.
More than 26 is rejected (422).
Body Parameters
The question to decide.
When true (default), the model may abstain if it lacks confidence.
When false, abstention is replaced by the best-effort answer.
Optional domain hint for specialized few-shot behavior (e.g., finance).
Candidate outcomes (2–26 items). When omitted, the model infers options from the question text.
Text context for the decision. May be empty when images or documents carry the context.
Whether to allow a reasoning trace before deciding. Only honored in fast
mode; ignored for deep. Set to false for lowest latency.
Returns
Auto-detect decision type
curl https://api.articul8.ai/bivia/decide \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"question": "Most likely diagnosis?"
}'
{
"type": "decide",
"value": "pneumonia",
"probability": 0.99,
"distribution": {
"common cold": 0.01,
"pneumonia": 0.99,
"healthy": 0
},
"status": "answered",
"abstain_reason": null,
"mode": "fast",
"think_allowed": false,
"thought": false,
"grounded": true,
"verification": {
"performed": false,
"result": "not_applicable"
},
"evidence": {
"spans": []
},
"latency_ms": 110,
"model": "dec-1",
"input_tokens": 380,
"billable_tokens": 1000
}Returns Examples
{
"type": "decide",
"value": "pneumonia",
"probability": 0.99,
"distribution": {
"common cold": 0.01,
"pneumonia": 0.99,
"healthy": 0
},
"status": "answered",
"abstain_reason": null,
"mode": "fast",
"think_allowed": false,
"thought": false,
"grounded": true,
"verification": {
"performed": false,
"result": "not_applicable"
},
"evidence": {
"spans": []
},
"latency_ms": 110,
"model": "dec-1",
"input_tokens": 380,
"billable_tokens": 1000
}