Skip to main content

Multi-Agent Conversation Example

This example shows a conversation involving multiple specialized agents.

The Scenario

A customer inquiry is handled by a triage agent that routes to a specialized support agent.

JSON

Key Points

Multiple Agent Definitions

Three agents are defined, each with their own tools:
  • Triage Agent: Classifies and routes
  • Order Support Agent: Handles order inquiries
  • Technical Support Agent: Available but not used

Agent Tracking via Meta

The meta.agent field on each message tracks which agent responded:

Agent Handoff

Message at sequence_number 1 shows the triage agent routing to order support:
  1. Classifies the intent
  2. Routes to specialist
  3. Provides transition message

What This Enables

Multi-agent conversations allow you to evaluate:
  • Routing Accuracy: Did triage route correctly?
  • Handoff Quality: Was the transition smooth?
  • Specialist Effectiveness: Did the specialist resolve the issue?
  • Agent Coordination: Did agents work together effectively?