executeTools

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

Executes a list of tool calls and returns their results.

This method processes each tool call individually by:

  1. First checking if there are any mocked responses for the tool call

  2. If no mocks are found, executing the actual tool implementation

Return

A list of ReceivedToolResult objects containing the results of the tool calls

Parameters

toolCalls

The list of tool calls to execute