Quick Start
Flow Patterns
Sequential
Steps execute in order, each receiving the previous step’s output.Conditional Branching
Route to different steps based on conditions.Parallel Execution
Execute steps simultaneously.Loops
Iterate over collections.Configuration Options
| Parameter | Type | Default | Description |
|---|---|---|---|
steps | List | Required | Workflow steps (Agent, function, pattern) |
variables | Dict | {} | Variables passed to all steps |
llm | str | "gpt-4o-mini" | Default LLM for agents |
process | str | "sequential" | Process type |
output | str/Config | None | Output configuration |
planning | bool/str | False | Enable/configure planning |
memory | bool/Config | None | Memory configuration |
hooks | Config | None | Lifecycle callbacks |
history | bool | False | Track execution history |
context | bool | True | Context management |
Using Functions as Steps
You can use regular Python functions as steps:Execution History
Enable history for debugging:Best Practices
Step Naming
Step Naming
Name your agents clearly for better debugging:
Variable Templating
Variable Templating
Use
{{variable}} syntax in agent instructions:Error Handling
Error Handling
Use hooks for error handling:
Key Methods
| Method | Description |
|---|---|
start(input) | Execute the workflow |
run(input) | Alias for start() |
arun(input) | Async execution |
get_history() | Get execution trace |
to_dict() | Serialize workflow |
from_template(uri) | Create from template |

