Use a coordinator formation to let one coordinator agent orchestrate multiple member agents that work together on a task.
Multi-agent collaboration lets a coordinator agent orchestrate a group of member agents. When
Configure the formation through the
Fields of each entry in
The following creates an agent with a coordinator formation that includes the coordinator itself (
multiagent is not configured or the formation is empty, the agent runs as a single agent.
Formation Configuration
Configure the formation through the multiagent field when creating or updating an agent.
| Field | Description |
|---|---|
type | Collaboration topology. Only coordinator is currently supported. |
agents | Roster entries, 1–20 items. Pass an empty array to clear the formation. |
agents:
| Field | Description |
|---|---|
type | Entry type: agent (references another Agent) or self (the coordinator itself, at most one per formation). |
id | ID of the referenced agent. Required when type=agent (up to 64 characters); must not be set when type=self. |
version | Version of the referenced agent. Optional when type=agent (>=1; the latest version is used if omitted); must not be set when type=self. |
Passing an empty array
"agents": [] clears the formation, and the agent falls back to running as a single agent.Configuration Example
The following creates an agent with a coordinator formation that includes the coordinator itself (self) and one referenced member agent (agent). For full parameter and response field details, see the Create Agent API.
Next Steps
- Define an Agent: Configure the formation on an agent.
- Create a Session: Start a session with the agent that has a formation configured.