Minimal Example
research_team.py
Team Modes
Teams default to coordinate mode (leader delegates and synthesizes). Setmode to change how the leader collaborates with members.
max_iterations to cap how many cycles the leader can run.
Callable Factories
You can define members, tools, or knowledge as callables that are resolved at runtime with access to the run context.Team Members
Each member should have aname and role. The team leader uses these to decide who handles what.
id:
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 themodel from their parent team if not explicitly set.
Team Features
Teams support the same features as agents:| Feature | Description |
|---|---|
| Instructions | Guide the team leader on how to coordinate |
| Mode | Choose the coordination strategy (coordinate, route, broadcast, tasks) |
| Database | Persist session history and state |
| Reasoning | Enable the leader to plan before delegating |
| Knowledge | Give the leader access to a knowledge base |
| Memory | Store and recall information across sessions |
| Tools | Give the leader tools to use directly |
Next Steps
| Task | Guide |
|---|---|
| Run teams | Running Teams |
| Control delegation | Delegation |
| Add chat history | Chat History |
| Manage sessions | Sessions |
| Handle input/output | Input and Output |
| Add knowledge | Knowledge |
| Add guardrails | Guardrails |