executeTool
Executes a single tool call and retrieves the result.
This method sends the specified tool call to the tool execution environment, processes it, and returns the result of the tool call. It internally leverages executeTools
to handle the execution and retrieves the first result from the returned list of results.
Return
The result of the executed tool call, represented as ReceivedToolResult.
Parameters
toolCall
The tool call to be executed, represented as an instance of Message.Tool.Call.