Prerequisites
- Python 3.9 or higher
- PostgreSQL (setup instructions below)
- OpenAI API key
Code
hitl_confirmation.py
Testing the Example
Once the server is running, test the HITL flow:Usage
1
Set up your virtual environment
2
Set Environment Variables
3
Install dependencies
4
Setup PostgreSQL Database
5
Run Example
Learn More
HITL Overview
HITL patterns: confirmation, user input, external execution, and approval
User Confirmation
Pause runs for explicit approval before a tool executes