Auto-Injected Tools
| Mode | Leader tools |
|---|---|
| coordinate | delegate_to_member(member_name, task) |
| route | route_to_member(member_name) |
| collaborate | None (all members execute automatically) |
| tasks | create_task(title, description, assignee), update_task(task_id, status), list_tasks() |
Coordinate Mode
The leader receives member descriptions and decides which ones to involve:- Leader sees each member’s name and instructions.
- Leader calls
delegate_to_memberfor each selected member. - Each member runs with the delegated task.
- Leader synthesizes all responses into a final output.
Route Mode
The leader classifies the request and routes to exactly one member:- Leader sees member descriptions.
- Leader calls
route_to_memberwith the best match. - The selected member’s response is returned directly (no synthesis).
Tasks Mode
The leader decomposes work into a task list and delegates autonomously:- Leader calls
create_taskfor each subtask. - Leader assigns tasks to members via delegation.
- Tasks complete and the leader creates follow-up tasks as needed.
- Loop continues until all tasks are done or
max_iterationsis reached.
Sharing Context
Enableshare_member_interactions to pass member responses to subsequent delegations: