Learn about the new workflow syntax and how to migrate your existing workflows
steps
keyword.
inputs[x]
- Referenced input data from step xoutputs[x]
- Referenced output data from step x_x
- Shorthand for input data from step xsteps[x].input
- References input data from step xsteps[x].output
- References output data from step x_x
- Has been removed$
prefix in the new syntax. This indicates that the value should be treated as a Python expression. We’ll cover this in detail in the next section.inputs[0]
becomes steps[0].input
outputs[0]
becomes steps[0].output
_0
becomes steps[0].input
$
prefix to indicate Python expressionsprompt
Steps{{ }}
) in log
steps and prompt
steps. Instead, we now use Python f-strings with the $
prefix for dynamic content.
$
prefix is only needed when the value contains a Python expression or f-string. Plain text content doesn’t require the prefix.$
prefix should be used in two scenarios: