executeTool

fun executeTool(toolCall: ERROR CLASS: Symbol not found for Message.Tool.Call, executorService: 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