Yes / no decision
/boolean
Returns yes or no with a calibrated probability. probability is P(value),
not always P(yes) — if the answer is no, then probability is P(no).
The distribution object always contains both yes and no keys summing to 1.
Body Parameters
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
Yes / no decision
curl https://api.articul8.ai/bivia/boolean \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"question": "Is this urgent?"
}'
{
"type": "boolean",
"value": "no",
"probability": 0.94,
"distribution": {
"yes": 0.06,
"no": 0.94
},
"status": "answered",
"abstain_reason": null,
"mode": "fast",
"think_allowed": false,
"thought": false,
"grounded": true,
"verification": {
"performed": false,
"result": "not_applicable"
},
"evidence": {
"spans": []
},
"latency_ms": 90,
"model": "dec-1",
"input_tokens": 245,
"billable_tokens": 1000
}Returns Examples
{
"type": "boolean",
"value": "no",
"probability": 0.94,
"distribution": {
"yes": 0.06,
"no": 0.94
},
"status": "answered",
"abstain_reason": null,
"mode": "fast",
"think_allowed": false,
"thought": false,
"grounded": true,
"verification": {
"performed": false,
"result": "not_applicable"
},
"evidence": {
"spans": []
},
"latency_ms": 90,
"model": "dec-1",
"input_tokens": 245,
"billable_tokens": 1000
}