awrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], Awaitable[ToolMessage | Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | |
handler* | Callable[[ToolCallRequest], Awaitable[ToolMessage | Command[Any]]] |
Apply the /offload per-run tool guard before asynchronous tools.
Tool call about to be executed.
The remaining middleware/tool execution chain.