Skip to main content
A member agent collects a traveller name and trip preferences in two separate tool calls. Each requires_user_input call pauses the team run. The client fills the returned requirement schema and calls the team continue route until the run completes.
user_input.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 user_input.py, then run:
Full source: cookbook/05_agent_os/05_human_in_the_loop/user_input.py