awrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], Awaitable[ToolMessage | Name | Type | Description |
|---|---|---|
request* | ToolCallRequest | Tool call request to potentially emulate. |
handler* | Callable[[ToolCallRequest], Awaitable[ToolMessage | Command[Any]]] |
Async version of wrap_tool_call.
Emulate tool execution using LLM if tool should be emulated.
Async callback to execute the tool (can be called multiple times).