Skip to main content
Start simple: a model, team members, and instructions. Add functionality as needed.

Minimal Example

research_team.py

Team Modes

Teams default to coordinate mode (leader delegates and synthesizes). Set mode to change how the leader collaborates with members.
Tasks mode runs an iterative task loop. Use max_iterations to cap how many cycles the leader can run.

Team Members

Each member should have a name and role. The team leader uses these to decide who handles what.
For better tracing, also set an id:
When both id and name are set on a member, team delegation uses id as the member identifier.

Nested Teams

Teams can contain other teams. The top-level leader delegates to sub-team leaders, who delegate to their members.

Model Inheritance

Team members inherit the model from their parent team if not explicitly set.

Callable Factories

Build dynamically configurable teams with Callable Factories. Agno framework supports the Callable Factory Pattern for Team configurations just as it does for individual Agents. This allows you to dynamically resolve team members, tools, and knowledge at runtime based on the specific session or user context. You can pass a function to the members, tools, or knowledge parameters of a Team. The framework uses signature inspection to inject the team instance and run_context.

Callable Caching Settings

Callable factories can be cached per user or session, or by a custom key. Clear cached results when you need to force re-resolution:
Use aclear_callable_cache() in async code.

Team Features

Teams support the same features as agents: See the guides below to add these features.

Next Steps

Developer Resources