Skip to main content
Use Yes/No for binary questions. Sage returns probability (P(yes)), answer ("yes"/"no"), and confidence (decisiveness from tie).

Request

{
  "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?"
  }
}

Response

{
  "id": "needs_compliance_review",
  "kind": "yesno",
  "result": {
    "probability": 0.92,
    "confidence": 0.84,
    "answer": "yes"
  },
  "meta": { "model": "levanto-sage-v0.5", "latency_ms": 97.4 }
}

Fields

FieldDescription
probabilityP(yes), in [0, 1]
answer"yes" if probability ≥ 0.5, else "no"
confidenceDecisiveness from a tie: 2 × abs(probability − 0.5)0 at a coin-flip (0.5), 1 at certainty

Threshold guidance

Sage always returns a decision signal. Your application decides what to do next:
  • High confidence — automate
  • Medium confidence — review
  • Low confidence — escalate to a human or ask for more context
Sage supports low-confidence routing; it does not abstain.