support-triage

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL