Teams
Teams enable multiple agents to work together. Choose how tasks are distributed: an orchestrator can pick agents, route to the best one, broadcast to all, or run iterative collaboration rounds.Multi-Agent Collaboration
Coordinate
An orchestrator model picks which member agent handles the task.
Route
Routes to the single best agent based on input.
Broadcast
Sends input to ALL agents and merges results.
Collaborate
Iterative rounds between agents (maxRounds configurable).
TeamMode
| Mode | Behavior |
|---|---|
coordinate | Orchestrator decides which agent(s) to invoke |
route | Single best agent selected based on input |
broadcast | All agents process input; results merged |
collaborate | Agents pass work in rounds until done (maxRounds) |
TeamConfig
Display name for the team.
How the team distributes work:
coordinate, route, broadcast, or collaborate.The orchestrator model (for coordinate/route) or shared model for the team.
Array of member agents.
System instructions for the orchestrator (coordinate/route) or team context.
Storage for session state.
Max collaboration rounds (collaborate mode only).
Custom event bus for team events.