Documentation
¶
Overview ¶
Command support-triage demonstrates budget enforcement and AskHuman escalation.
Overview ¶
A support ticket triage agent that:
- Classifies tickets using fake tool calls (classify_ticket, lookup_history)
- Escalates to a human reviewer via action.AskHuman when confidence is low
- Enforces a $0.10 USD budget (exhausted after 3 tool calls in demo mode)
- Uses loopkit.Respond to inject a fake human response and resume
Usage ¶
go run ./examples/support-triage/ go run ./examples/support-triage/ -ticket "my app crashes on startup"
Expected output ¶
Classifying ticket: "my app crashes on startup" Tool: classify_ticket → priority=high, confidence=0.60 Tool: lookup_history → 3 prior incidents AskHuman: Low confidence — should I escalate to Tier 2? [simulating human response: yes] Resumed after human approval. Result: escalated=true, priority=high
Click to show internal directories.
Click to hide internal directories.