awrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], Awaitable[ToolMessage | Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | Tool call request and current agent state. |
handler* | Callable[[ToolCallRequest], Awaitable[ToolMessage | Command[Any]]] |
Asynchronously execute a low-risk tool call or return a blocked result.
Async callable that executes the tool.