executeSingleToolImpl

InternalAgentsApi method. Executes a single tool with the provided arguments and returns the result.

Return

A SafeTool.Result containing the result of the tool execution.

Parameters

toolArgs

The arguments to be passed to the tool during execution.

doAppendPrompt

Indicates whether to append prompts to the LLM session for the tool call and its result.

tool

The tool to be invoked, containing the logic for processing the input arguments and producing the result.