Prerequisites:
- Two or more agents created (see Build an Agent guide)
Create the orchestration
Define an orchestration with a name and strategy. The supervisor strategy creates a coordinator that delegates to entity agents.Endpoint:
POST /api/orchestrationsAdd agents as entities
Add each agent to the orchestration with a role description that helps the coordinator decide when to delegate.Endpoint:
POST /api/orchestrations/{id}/entitiesRun the orchestration
Send a message to the orchestration. The coordinator delegates to the appropriate agent. Events include delegation_started and delegation_completed.Endpoint:
POST /api/orchestrations/{id}/run/streamAdditional SSE events for orchestrations: delegation_started (agent name + child run ID), delegation_completed (agent name + usage stats).
What’s Next
Multi-Agent Orchestration
Understand the coordinator pattern.
Orchestrations API Reference
Full endpoint documentation.