CompatibleFullAgentEdgeBuilder

Constructs a compatible full agent edge between two AI agent nodes, enabling the flow and transformation of data from the output of one node to the input of another.

Parameters

IncomingOutput

The type of the output data produced by the source node.

CompatibleOutput

An intermediate type ensuring compatibility between the source node and destination node, derived from the source node's output.

OutgoingInput

The type of the input data expected by the destination node.

fromNode

The source AI agent node, which emits data that needs to be forwarded.

toNode

The destination AI agent node, which receives the forwarded data.

forwardOutputComposition

A transformation function that takes the graph execution context and the output from the source node, and produces an optional intermediate compatible output.

Functions

Link copied to clipboard

Constructs and finalizes an AIAgentEdge connecting the specified source and destination nodes.

Link copied to clipboard

Applies a contextual condition to filter the output being processed and forwarded within the graph.

Attaches a condition that filters intermediate outputs before they are propagated to the target node within the agent's processing graph.

Link copied to clipboard
open fun <CompatibleOutput : OutgoingInput> onIsInstance(clazz: ERROR CLASS: Symbol not found for Class<CompatibleOutput>): CompatibleFullAgentEdgeBuilder<IncomingOutput, CompatibleOutput, OutgoingInput>

Filters intermediate outputs to only process those that are instances of the specified class type.

open fun <OutputSubtype : CompatibleOutput> onIsInstance(clazz: ERROR CLASS: Symbol not found for Class<OutputSubtype>): FullAgentEdgeBuilder<IncomingOutput, OutputSubtype, OutgoingInput>

Filters the outputs of the current processing edge based on their type, forwarding only those that are instances of the specified class.