awrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], Awaitable[ToolMessage || Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | |
handler* | Callable[[ToolCallRequest], Awaitable[ToolMessage | Command]] |
(async) Check the size of the tool call result and evict to filesystem if too large.
Note:
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.