Skip to main content
This example shows how to get workflow history in a custom function.
  • Using step_input.get_workflow_history(num_runs=5) we can get the history as a list of tuples.
  • We can also use step_input.get_workflow_history_context(num_runs=5) to get the history as a string.
04_get_history_in_function.py