Request
Response
A near-tie returns
null:
Handle “not sure”
probability yourself, for example auto-approve only at ≥ 0.98.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Yes, no, or null when Sage isn’t sure.
{
"content": "Marketing email draft promotes \"guaranteed 40% returns\" and describes the product as \"risk-free\" for accredited investors.",
"question": {
"id": "needs_compliance_review",
"kind": "yesno",
"instructions": "Does this copy require compliance review before send?"
}
}
{
"id": "needs_compliance_review",
"kind": "yesno",
"result": {
"answer": "yes",
"probability": 0.92
},
"meta": { "model": "levanto-sage-v1.3", "latency_ms": 97.4 }
}
| Field | Description |
|---|---|
answer | "yes", "no", or null |
probability | Calibrated P(yes), 0–1. Returned even when answer is null |
null:
{ "answer": null, "probability": 0.51 }
result = response["result"]
if result["answer"] is None:
escalate_to_human(response) # Sage isn't sure
elif result["answer"] == "yes":
send_to_compliance()
else:
send_email()
probability yourself, for example auto-approve only at ≥ 0.98.Was this page helpful?