forwardTo
infix fun <IncomingOutput, OutgoingInput> AIAgentNodeBase<*, IncomingOutput>.forwardTo(otherNode: AIAgentNodeBase<OutgoingInput, *>): AIAgentEdgeBuilderIntermediate<IncomingOutput, IncomingOutput, OutgoingInput>(source)
Creates a directed edge from this AIAgentNodeBase
to another AIAgentNodeBase
, allowing data to flow from the output of the current node to the input of the specified node.
Return
An AIAgentEdgeBuilderIntermediate
that allows further customization of the edge's data transformation and conditions between the nodes.
Parameters
otherNode
The destination AIAgentNodeBase
to which the current node's output is forwarded.