Skip to main content
AgentOS propagates approval pauses differently depending on where the tool lives. leader-approval-team owns its approval tool directly; member-approval-team delegates to a member that owns the tool. The client runs both cases, resolves each persistent approval by ID, applies the approved decision to the returned requirement, and continues the paused team.
team_approval.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 team_approval.py, then run:
Full source: cookbook/05_agent_os/05_human_in_the_loop/team_approval.py