Skip to main content

Coordinate Team

An orchestrator delegates subtasks to specialist agents, then synthesizes their outputs into a unified response. This is ideal when a task naturally decomposes into distinct roles.

Route Team

The orchestrator inspects the user’s input and forwards the entire request to a single specialist agent. Use this pattern when requests fall into distinct, non-overlapping categories.

Broadcast Team

Every member receives the same input in parallel. An orchestrator merges their perspectives into a single answer. Use this when you want multiple viewpoints analyzed simultaneously.

Collaborate Team

Members iterate in rounds, building on each other’s work. The orchestrator checks for consensus after each round and either stops early or poses a follow-up question. Control iteration depth with maxRounds.

Team with Shared Tools

All agents in a team share the same tool library, enabling consistent access to external services. Define tools once and pass them to every member.

Nested Teams

Compose teams of teams for complex organizational hierarchies. An outer team can coordinate inner teams that each handle a different domain. Teams are valid members of other teams.

Team with Memory

Maintain shared session context across team interactions so members can recall earlier conversation turns. Each agent stores and retrieves messages from the same storage backend.

Team with Cost Tracking

Attach a CostTracker to every agent in the team to monitor total spend, enforce budgets, and get per-agent breakdowns after the run completes.