Skip to main content
Give the tutoring step access to the three most recent workflow runs for a continuing conversation.
This example supplies the three most recent workflow runs, not the full conversation history claimed in the agent instructions. Set num_history_runs on Step to choose a larger bounded window; the step’s default of 3 takes precedence over the workflow setting.
continuous_execution.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as continuous_execution.py, then run:
Full source: cookbook/04_workflows/06_advanced_concepts/history/continuous_execution.py