Refund only when sure
Open in playground →Task
Classify a ticket, and give the refund amount only when it is a billing ticket and the model is at least 80% sure of that.
Challenges
refundruns only ifcategoryisbillingwith a confidence of at least 0.8:"when": {"category": {"in": ["billing"], "confidence": {"gte": 0.8}}}.- This ticket is plainly billing, so the refund is asked. A vaguer one, "Since I changed my email I can't log in, and my last invoice looks wrong too.", came back
accountat confidence 0.34, andrefundwas skipped.
Laying out…
Generation(
result={
'category': {
'value': 'billing',
'probabilities': {
'billing': 1,
'technical': 0,
'account': 0,
},
'confidence': 1,
},
'refund': 49,
},
thinking={},
usage=Usage(input_tokens=87, thinking_tokens=0),
)