Skip to main content
Demonstrates complex task dependency chains in task mode. The team leader creates tasks where later tasks depend on earlier ones, ensuring proper execution order. Shows how the system handles blocked tasks.
dependency_chain.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as dependency_chain.py, then run:
Full source: cookbook/03_teams/02_modes/tasks/08_dependency_chain.py