Files

50 lines
1.4 KiB
JSON

{
"rule": "On /v1/decisions a noul carries `confidence` = |2p - 1|; a choice or score carries `confidence` = (n·p_max - 1)/(n - 1) and `answer_confidence` = p_max.",
"cases": [
{
"path": "native",
"send": [
{
"state": "I was charged twice for my March invoice. Please refund the duplicate.",
"questions": {
"billing": {
"type": "noul",
"instructions": "Is this about billing?",
"criteria": {
"true": "it concerns charges, invoices or refunds",
"false": "it concerns something else"
}
},
"team": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "charges, invoices, refunds",
"tech": "bugs and outages",
"sales": "plans and upgrades"
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this?",
"criteria": [
"can wait",
"this week",
"today",
"right now"
]
}
}
}
],
"expect": {
"status": 200,
"checks": [
"noul_confidence",
"confidences"
]
}
}
]
}