Skip to main content
Build workflows where multiple specialized agents collaborate to complete complex tasks.

The Pattern

Create specialized agents for different tasks, then orchestrate them with a coordinator:

Complete Example: Content Pipeline

A full content creation pipeline with research, writing, and editing:

Distributed Agents (Registry)

You can build systems where some agents are local and others are remote (Serverless, Cloud Run, etc.). The Agent Registry makes this transparent to your code.
When using AgentServer, this wiring is automatic:

Using Stateful Agents

For more complex workflows where agents need to maintain state:

Tips

Each agent should have a clear, specific role. Don’t overload them.
Customize system prompts for each agent’s specialty and personality.
Use faster/cheaper models for simple tasks, more capable ones for complex reasoning.
Wrap agent calls in try/catch and have fallback strategies.