Skip to main content

What is Route Team mode

Route mode uses an intelligent router agent to analyze incoming requests and select the single best specialist agent to handle the entire task. This is ideal for scenarios where you have domain experts and need to route queries efficiently.

Usage

Streaming with mixed Agent and Team entities

Stream the chosen entity’s output after routing. A header (e.g. --- [Agent] Tech Expert --- or --- [Team] TechTeam ---) appears before the stream.

Params

  • agents: List of Agent instances
  • mode: Set to "route"
  • model: Required - Model provider for the router agent
  • response_format: Optional, defaults to str