Check the size of the tool call result and evict to filesystem if too large.
wrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], ToolMessage | Command]
) -> ToolMessage | Command| Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | The tool call request being processed. |
handler* | Callable[[ToolCallRequest], ToolMessage | Command] | The handler function to call with the modified request. |