executeMultipleTools

abstract suspend fun executeMultipleTools(toolCalls: List<Message.Tool.Call>, parallelTools: Boolean = false): List<ReceivedToolResult>(source)

Executes multiple tool calls and returns their results. These calls can optionally be executed in parallel.

Return

A list of results from the executed tool calls.

Parameters

toolCalls

The list of tool calls to execute.

parallelTools

Specifies whether tools should be executed in parallel, defaults to false.