ToolContext.request_confirmation():
request_confirmation() is called from a before_tool_callback, the tool execution is paused and a confirmation request event is yielded. The caller must approve or reject before execution continues.
Gate dangerous tool executions with ToolContext.request_confirmation(). Pause and require approval before delete, drop, or other risky operations.
ToolContext.request_confirmation():
request_confirmation() is called from a before_tool_callback, the tool execution is paused and a confirmation request event is yielded. The caller must approve or reject before execution continues.