executeTool
expect open suspend override fun executeTool(toolCall: Message.Tool.Call): ReceivedToolResult(source)
Executes a tool call and returns the result.
Return
The result of the tool execution.
Parameters
toolCall
The tool call to execute.
fun executeTool(toolCall: Message.Tool.Call, executorService: ERROR CLASS: Symbol not found for ExecutorService?? = null): ReceivedToolResult(source)
Executes the specified tool call using an optional executor service.
Return
the result of the executed tool call
Parameters
toolCall
the tool call to be executed
executorService
the executor service to run the tool call on, defaults to null