Quick Start
Requirements
- Python 3.10 or higher
- OpenAI API key. Generate OpenAI API key here. Use Other models using this guide.
- Basic understanding of Python
How It Works
The user submits a task; the orchestrator picks a worker viaroute(), the worker executes, and the synthesizer merges the result.
Understanding Orchestrator-Worker Pattern
What is Orchestrator-Worker?
Orchestrator-Worker pattern enables:
- Dynamic task distribution and routing
- Specialized worker execution
- Result synthesis and aggregation
- Coordinated workflow management
Features
Task Routing
Intelligently distribute tasks to specialized workers.
Worker Specialization
Dedicated agents for specific task types.
Result Synthesis
Combine and process worker outputs effectively.
Process Control
Monitor and manage the orchestrated workflow.
Configuration Options
Troubleshooting
Routing Issues
If task routing fails:
- Check routing conditions
- Verify worker availability
- Enable verbose mode for debugging
Synthesis Flow
If result synthesis is incorrect:
- Review worker outputs
- Check context connections
- Verify synthesis logic
Best Practices
Keep orchestrator instructions routing-only
Keep orchestrator instructions routing-only
The orchestrator should return a single routing keyword — avoid asking it to perform worker tasks directly.
Specialise each worker
Specialise each worker
Give workers narrow roles (research, code, writing) so the orchestrator can route confidently.
Always add a synthesizer step
Always add a synthesizer step
A final synthesizer agent merges worker outputs into one coherent response for the user.
Related
AutoAgents
Automatically created and managed AI agents
Mini Agents
Lightweight, focused AI agents
Multi-Agent Pipelines
Chain agents into production pipelines
Nested Workflows
Compose workflows inside workflows

