Code
cookbook/agent_concepts/user_control_flows/external_tool_execution.py
Usage
Key Features
- Uses
@tool(external_execution=True)to mark tools that need external execution - Demonstrates how to handle tool execution results
Use Cases
- Executing sensitive operations outside agent control
- Executing long-running operations outside agent control