AIAgentParallelNodeBuilder

Builder for a node that executes multiple nodes in parallel.

Parameters

nodes

List of nodes to execute in parallel

merge

A suspendable lambda that defines how the outputs from the parallel nodes should be merged

dispatcher

Coroutine dispatcher to use for parallel execution

Properties

Link copied to clipboard
lateinit var name: String

The name of the AI agent node being built.

Functions

Link copied to clipboard
open override fun build(): AIAgentNodeBase<Input, Output>

Builds and returns the instance of type T that has been configured using the builder.