awrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], Awaitable[ToolMessage || Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | |
handler* | Callable[[ToolCallRequest], Awaitable[ToolMessage | Command]] |
(async) Provide on-demand media access and evict oversized tool results.
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.