executeMultipleTools

fun executeMultipleTools(toolCalls: List<ERROR CLASS: Symbol not found for Message.Tool.Call>, parallelTools: Boolean, executorService: ExecutorService? = null): List<ReceivedToolResult>(source)

Executes multiple tool calls either sequentially or in parallel based on the provided configurations.

Return

a list of results obtained from executing the provided tool calls

Parameters

toolCalls

a list of tool call objects to be executed

parallelTools

a boolean flag indicating whether the tool calls should be executed in parallel

executorService

an optional executor service to manage parallel execution; if not provided, a default executor is used