Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Demo 3: Hand-off Customer Support Triage

Orchestration Pattern: Handoff (HandoffBuilder)

Uses agent_framework.orchestrations.HandoffBuilder: the Triage agent classifies the issue and explicitly hands off control to either the Billing agent or the Tech Support agent. Shows explicit handoff events in the trace.

Scenario & Value

A Triage agent receives a customer query, classifies it, and hands off to the appropriate specialist. Demonstrates agent-to-agent control transfer, critical for support, routing, and escalation workflows.

Agent Cast

Agent Role Instructions Tools Termination
Triage Classifier Acknowledge in one short line, then hand off ONCE to Billing or TechSupport. No follow-up questions. None After single handoff
Billing Billing Specialist Resolve refunds / charges / payments in 2–4 sentences and end with RESOLVED. None When RESOLVED is emitted or max_rounds is reached
TechSupport Tech Specialist Resolve errors / setup / connectivity in 2–4 sentences and end with RESOLVED. None When RESOLVED is emitted or max_rounds is reached

The orchestration is bounded by max_rounds=3 to prevent loops on small local models.

Recommended Models

Handoff/tool-calling reliability scales with model size. For best results:

  • phi-4-mini or qwen2.5-7b (recommended) — clean single handoff, reliable termination
  • qwen2.5-1.5b (default) — works, but may occasionally bounce between specialists

Set the model in .env via FOUNDRY_MODEL=phi-4-mini, or live-switch from the launcher settings panel.

Run

python -m demos.handoff_support.run