wrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], ToolMessage | Command| Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | |
handler* | Callable[[ToolCallRequest], ToolMessage | Command[Any]] |
Intercept tool execution and retry on failure.
Tool call request with call dict, BaseTool, state, and runtime.
Callable to execute the tool (can be called multiple times).