Expand description
Execution context — runtime variables accessible between steps.
Provides $variable interpolation in user prompts and system prompts.
Variables are populated automatically by the runner as steps execute.
Built-in variables: $result — output of the most recent step $step_name — name of the current step $step_type — type of the current step $flow_name — name of the current flow $persona_name — name of the current persona $unit_index — 1-based index of the current execution unit $step_index — 1-based index of the current step within the unit ${StepName} — result of a specific named step (e.g., ${Analyze})
Variable syntax: $name or ${name} (braces for disambiguation).
Structs§
- Exec
Context - Execution context — holds runtime variables for a single execution unit.
Functions§
- interpolate_
vars - resolve_
named_ arg_ value - v2.10.0 — resolve a
use Tool(k = v)keyword-argument VALUE against the runtime bindings, by its frontend-classifiedvalue_kind: - resolve_
value_ reference - v2.17.0 — resolve a VALUE-POSITION expression (a
for … in <expr>iterable, areturn <expr>) against the runtime bindings. These positions carry no frontendvalue_kindclassification (unlike a v2.10.0 kwarg), so this resolves the three reference forms a flow author writes, in order: