Skip to main content
A member agent requests send_email, but external_execution=True keeps the side effect outside the AgentOS process. The client reads the requested arguments, performs a deterministic stand-in for the external action, stores the result on the returned requirement, and continues the paused team run.
external_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 external_execution.py, then run:
Full source: cookbook/05_agent_os/05_human_in_the_loop/external_execution.py