Skip to main content
One OS-served workflow pauses before a sensitive step, pauses again to collect step input, then pauses after producing a draft so a human can review its output. The HTTP client resolves every returned step_requirements payload through the workflow continue route.
workflow_hitl.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as workflow_hitl.py, then run:
Full source: cookbook/05_agent_os/05_human_in_the_loop/workflow_hitl.py