Client
Orchestrator
Agent A
Agent B
When to Use
Use multi-agent orchestration when you have distinct request categories that benefit from specialized handling, such as support versus sales inquiries or different product domains. This pattern works best when each specialist agent can operate independently and when automatic routing based on request content is reliable. Avoid when requests frequently require multiple specialists or when the routing logic becomes complex.Implementation
This example demonstrates a customer service system where a coordinating agent automatically routes between support and sales specialists based on the nature of incoming requests.Agent Code
Support Agent: Technical Assistance
Support Agent: Technical Assistance
Sales Agent: Product Information
Sales Agent: Product Information
pickAndRun()
for automatic agent selection based on the request content, with each specialist agent optimized for its specific domain. The orchestrator maintains a consistent interface while delegating to the most appropriate expert.