Overview
Three step types accept CEL expressions:| Step Type | Parameter | Must Return | Description |
|---|---|---|---|
Condition | evaluator | bool | True runs steps, False runs else_steps |
Loop | end_condition | bool | True exits the loop |
Router | selector | string | Name of the step to execute from choices |
| Variable | Type | Condition | Router | Loop |
|---|---|---|---|---|
input | string | ✓ | ✓ | |
previous_step_content | string | ✓ | ✓ | |
previous_step_outputs | map | ✓ | ✓ | |
additional_data | map | ✓ | ✓ | |
session_state | map | ✓ | ✓ | |
step_choices | list | ✓ | ||
current_iteration | int | ✓ | ||
max_iterations | int | ✓ | ||
all_success | bool | ✓ | ||
last_step_content | string | ✓ | ||
step_outputs | map | ✓ |
Conditions
Condition evaluators receive step input context and must return a boolean.True runs steps, False runs else_steps.
Route on input content
Branch on previous step output
Run a classifier first, then route based on its output:Branch on additional data
Branch on session state
Loops
Loop end conditions receive loop output context and must return a boolean.True exits the loop.
Exit after N iterations
Exit on output keyword
Compound exit condition
Routers
Router selectors receive step input context and must return a string matching a step name fromchoices.