Skip to main content
To build a workflow, create agents and compose them into steps. Steps can be nested freely.
pipeline.py

Run Your Workflow

1

Set up your environment

2

Install Definable

3

Export your API key

4

Run

Step Executors

Each Step wraps exactly one executor. Set agent=, team=, or executor=.

Step Parameters

str
required
Step name. Used to access results via result.get_step_output(name).
Agent
Agent to execute. Mutually exclusive with team and executor.
Team
Team to execute. Mutually exclusive with agent and executor.
Callable
Custom function (StepInput) -> str | RunOutput. Mutually exclusive with agent and team.
float
Maximum execution time in seconds.
int
default:"0"
Number of retry attempts on failure.
Callable[[StepInput], str]
Custom function to build the prompt from step context.

Composing Steps

All step types are composable. Nest them freely:

Next Steps