Orchestration & Sub-Agents





Pattern
Orchestrator-Worker Pattern
Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.
AdvancedOct 2025View the full pattern on desktop


Problems solved
- Coordinate specialized worker tools from an orchestrator agent
- Assign tasks across disciplines through strongly typed tools
- Track deliverables and progress in a streaming agent UI
- Demonstrate the orchestrator-worker pattern with Experimental_Agent
Use cases
- Software project coordination agents
- Product development task orchestration
- Research project managers with specialist workers
- QA and deliverable tracking copilots
AI SDK APIs
new Agenttool(stepCountIsExperimental_Agenttools:gateway
Tags
aiagentsorchestratorworkerproject-managementcoordinationai-sdk-v5strongly-typedstreamingdeliverables
Requirements
- Node.js
- 24+
- Memory
- 1GB
- Other
- OpenAI API key
Environment variables
OPENAI_API_KEYGet key
External services
openai
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktopRelated patterns


Multi-Step Tool Pattern
Execute multi-step workflows with typed tools. Includes streaming, tool chaining, and decision-making for automated tasks.
aiagents+8
View pattern β


Evaluator-Optimizer Pattern
Improve output quality with dual agents. Evaluator analyzes quality while optimizer refines results through iterative feedback.
aiagents+9
View pattern β



