nodeExecuteMultipleToolsAndSendResults

Creates a node in the AI agent subgraph that processes a collection of tool calls, executes them, and sends back the results to the downstream process. The tools can be executed either in parallel or sequentially based on the provided configuration.

Return

An instance of AIAgentNodeDelegate that takes a list of tool calls as input and returns the corresponding list of tool responses.

Parameters

name

An optional name for the node to be created. If not provided, a default name is used.

parallelTools

A flag to determine if the tool calls should be executed concurrently. If true, all tool calls are executed in parallel; otherwise, they are executed sequentially. Default value is false.