executeSingleTool
fun <ToolArg, ToolResult> executeSingleTool(tool: ERROR CLASS: Symbol not found for Tool<ToolArg, ToolResult>, toolArgs: ToolArg, doUpdatePrompt: Boolean, executorService: ExecutorService? = null): SafeTool.Result<ToolResult>(source)
Executes a single tool with the specified arguments.
Return
The result of the executed tool wrapped in a SafeTool.Result.
Parameters
tool
The tool to be executed.
toolArgs
The arguments to be passed to the tool.
doUpdatePrompt
A flag indicating whether to update the prompt during execution.
executorService
The executor service to be used for execution. If null, a default dispatcher will be used.