executeTools

open suspend override fun executeTools(toolCalls: List<Message.Tool.Call>): List<ReceivedToolResult>(source)

Executes a list of tool calls and returns their corresponding results.

Return

A list of results corresponding to the executed tool calls. Each result includes details such as the tool name, identifier, response content, and associated 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.