wrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], ToolMessage | Command| Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | |
handler* | Callable[[ToolCallRequest], ToolMessage | Command] |
Provide on-demand media access and evict oversized tool results.
Tool-execution exceptions (including ToolException) propagate
through this wrapper unhandled by design.
The tool call request being processed.
The handler function to call with the modified request.