Skip to main content

What is Sequential Team mode

Sequential mode is the default and most straightforward team operation mode. Tasks flow from one agent to the next in a linear pipeline. There are two ways to assign agents to tasks in sequential mode:
  • Automatic Selection — The team intelligently analyzes each task and selects the best-suited agent based on their roles and capabilities. This is the default behavior.
  • Manual Assignment — You explicitly assign a specific agent to a task using the agent parameter. This gives you full control over which agent handles which task.

Automatic Selection

By default, the team automatically picks the best agent for each task. You simply define your tasks and let the team decide.

Manual Assignment

You can explicitly assign a specific agent to a task by passing the agent parameter. This overrides the automatic selection and ensures the designated agent handles that task.

Streaming with mixed Agent and Team entities

You can stream output with a mix of Agent and nested Team entities. Each entity’s output is preceded by a header (e.g. --- [Agent] Researcher ---).

Params

  • agents: List of Agent instances
  • mode: Set to "sequential"
  • response_format: Optional, defaults to str
  • ask_other_team_members: Optional, enables inter-agent communication