Decision from raw signals
/ds
Makes a decision based on raw numeric signals. The server profiles the signal data (statistics, distribution, anomalies) and folds the analysis into context before deciding.
kind selects the decision type: set (default, multi-select), choice
(pick one), or boolean (yes/no). Candidates must be in options.
Body Parameters
question: string
allow_abstain: optional boolean
domain: optional string
options: optional array of unknown
Candidate answers. Required for useful choice or set results.
state: optional string
think: optional boolean
Returns
Decision from raw signals
curl https://api.articul8.ai/bivia/ds \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"question": "Which analysis method fits this signal?"
}'
{
"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
}