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