executeTools

Executes a batch of tool calls within the AI agent environment and processes their results.

This method takes a list of tool call messages, processes them by sending appropriate requests to the underlying environment, and returns a list of results corresponding to the tool calls.

Return

A list of results corresponding to the executed tool calls. Each result includes details such as the tool name, identifier, response content, and metadata.

Parameters

toolCalls

A list of tool call messages to be executed. Each message contains details about the tool, its identifier, the request content, and associated metadata.