cookbook/02_agents/10_human_in_the_loop/README.md
Examples for confirmation flows, user input prompts, and external tool handling.
agentic_user_input.py - Agent requests user input during execution.confirmation_advanced.py - Advanced confirmation patterns.confirmation_required.py - Require confirmation before tool execution.confirmation_required_mcp_toolkit.py - Confirmation with MCP toolkit.confirmation_toolkit.py - Confirmation using a toolkit.external_tool_execution.py - External tool execution flow.mixed_external_and_regular_tools.py - Mixed external and regular tools in a single agent.user_input_required.py - Tools that require user input.confirmation_with_session_state.py - Confirmation flow where the tool modifies session_state before pausing. Verifies that state changes survive the pause/continue round-trip.direnv allow (including OPENAI_API_KEY)../scripts/demo_setup.sh, then run cookbooks with .venvs/demo/bin/python..venvs/demo/bin/python cookbook/02_agents/10_human_in_the_loop/<file>.py