FullAgentEdgeBuilder
A builder class for constructing a specialized edge in an AI agent strategy graph. This edge enables data flow between two nodes while supporting a composition of the output transformation logic.
Parameters
The type of input data from the fromNode.
The type of processed data output by the forwardOutputComposition function.
The type of input data expected by the toNode.
The source node in the strategy graph. This node produces the input data.
The destination node in the strategy graph. This node consumes the transformed data.
A suspendable function that transforms the output of the fromNode into an intermediate format before passing it to the toNode. The transformation output is represented as an Option type, allowing for optional chaining and flexibility in data flow.
Inheritors
Functions
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.
Filters intermediate outputs to only process those that are instances of the specified class type.
Filters the outputs of the current processing edge based on their type, forwarding only those that are instances of the specified class.
Transforms the intermediate output of the AIAgentNode by applying a given transformation block.