content_team.py
Run Your Team
Constructor Reference
Human-readable team name. Auto-generated if not set.
Model for the leader agent. Accepts string shorthand (
"gpt-4o") or a Model instance.Agents or nested teams the leader can delegate to.
Execution mode:
coordinate, route, collaborate, or tasks.Instructions for the leader agent.
Maximum delegation rounds (relevant for
tasks mode).When
true, member responses are shared with subsequent delegations.Additional tools for the leader (on top of auto-injected delegation tools).
Pydantic model for structured output from the leader.
Enable debug logging for team operations.
Next Steps
| Task | Guide |
|---|---|
| Execute and handle team responses | Running teams |
| Understand delegation patterns | Delegation |
| Orchestrate with step-based workflows | Workflows |