Skip to main content
Combine user feedback, external execution, confirmation, and required user input in one persisted incident run. tool_choice=“required” keeps each turn auditable; conclude_incident provides the explicit terminal tool.
hitl_incident_commander.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as hitl_incident_commander.py, then run:
Full source: cookbook/05_agent_os/17_slack/hitl_incident_commander.py