Skip to main content
Same HITL studio agent as studio_hitl_agent.py, but running behind AgentOS: the run pauses surface through the AgentOS API and chat UI instead of the console. When the studio agent is missing details it pauses with a structured multi-select question (ask_user) or a free-text input request (get_user_input), and create_agent always pauses for explicit confirmation before anything is persisted. The AgentOS UI renders each pause and continues the run with the user’s response.
studio_hitl_agent_os.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

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