Control steps
Control steps
Steps Dive runs itself to control a plan's flow, instead of calling a tool.
Use a control step's name as a step's tool_name. The conditions and bodies they share are described in Conditions and bodies.
| Name | Description |
|---|---|
route | Runs one of two or more branches, depending on a condition. |
filter | Splits a list into the items that pass a per-item condition and the items that don't. |
map | Runs the same steps once for each item in a list and collects the results. |
reduce | Folds a list into one value by running the same steps for each item in order. |
exit | Ends the plan early, as a success or an error, when a condition holds. |
agent | Hands one step to a model that calls tools until it can return structured output. |
ask | Asks the person running the plan a question and uses their answer. |