Skip to main content
To build a team, create member agents and compose them under a Team with an execution mode.
content_team.py

Run Your Team

1

Set up your environment

2

Install Definable

3

Export your API key

4

Run

Constructor Reference

str
Human-readable team name. Auto-generated if not set.
str | Model
Model for the leader agent. Accepts string shorthand ("gpt-4o") or a Model instance.
List[Agent | Team]
Agents or nested teams the leader can delegate to.
TeamMode
default:"coordinate"
Execution mode: coordinate, route, collaborate, or tasks.
str
Instructions for the leader agent.
int
default:"10"
Maximum delegation rounds (relevant for tasks mode).
bool
default:"false"
When true, member responses are shared with subsequent delegations.
List[Function]
Additional tools for the leader (on top of auto-injected delegation tools).
Type[BaseModel]
Pydantic model for structured output from the leader.
bool
default:"false"
Enable debug logging for team operations.

Next Steps