StepInput object provides powerful methods to access any previous step’s output by name or retrieve all accumulated content.
Example
step_input.get_step_content("step_name")- Get content from specific step by namestep_input.get_step_output("step_name")- Get the fullStepOutputobject from a specific stepstep_input.get_all_previous_content()- Get all previous step content combinedstep_input.workflow_message- Access the original workflow input messagestep_input.previous_step_content- Get content from immediate previous step
Accessing Nested Steps
You can directly access steps nested insideParallel, Condition, Router, Loop, and Steps groups using their step name. The lookup performs a recursive search to find nested steps at any depth.
Direct Access to Steps in Parallel Groups
Deeply Nested Steps
The recursive search works at any depth level:Lookup Priority: When a step name exists at both top-level and nested within a group, the direct (top-level) lookup takes priority over the nested search.
Parallel Group Output Format
When accessing aParallel group by its name, the output is a dictionary with each nested step’s name as the key: