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 confirmation requests using ToolContext.request_confirmation().
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.