Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
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": 1.0 }, "meta": { "model": "levanto-sage-2", "latency_ms": 110.6 } }
answer
"yes"
"no"
null
probability
{ "answer": null, "probability": 0.47 }
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()
Was this page helpful?