Skip to main content

What is Coordinate Team mode

Coordinate mode introduces a leader agent that takes charge of the entire workflow. The leader analyzes all tasks, creates a strategic plan, and delegates work to team members using a sophisticated delegation system.

Usage

Streaming with mixed Agent and Team entities

Stream the leader’s output. Only the leader is streamed; delegated member outputs are not streamed. A header (e.g. --- [Leader] Leader ---) appears before the stream.

Params

  • agents: List of Agent instances
  • mode: Set to "coordinate"
  • model: Required - Model provider for the leader agent
  • memory: Optional - Shared memory for team coordination
  • response_format: Optional, defaults to str