result = client.decide(
model="tacet-alpha",
state="The payment failed. The login works.",
questions={
"failed": {"type": "noul", "instructions": "Did the payment fail?"},
"route": {
"type": "choice",
"instructions": "Which team handles the problem?",
"criteria": {"payments": "Payment failures", "account": "Login access"},
},
"severity": {
"type": "score",
"instructions": "Rate the problem using these levels.",
"criteria": {"0": "No failure", "1": "Payment failure only", "2": "Payment and login failure"},
},
},
)
result.answers["failed"].probs["yes"] # 0.98
result.answers["route"].top # "payments"
result.answers["severity"].top # "1"