executeToolsBlocking

fun executeToolsBlocking(toolCalls: List<ERROR CLASS: Symbol not found for MessagePart.Tool.Call>, parallelTools: Boolean): List<ReceivedToolResult>(source)

Executes 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