Code
cookbook/agent_concepts/user_control_flows/confirmation_required.py
Usage
Key Features
- Uses
@tool(requires_confirmation=True)to mark tools that need user confirmation - Demonstrates how to continue agent execution after user input
Use Cases
- Confirming sensitive operations before execution