Skip to main content
A custom function step can read output from any earlier step in the workflow. Use step_input.get_step_content("step_name") to grab a specific step’s output, or get_all_previous_content() to pull everything produced so far. Install dependencies:
Set the API key used by the agents’ default OpenAI model:
access_multiple_previous_steps_output.py