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
The type of the output data produced by the source node.
An intermediate type ensuring compatibility between the source node and destination node, derived from the source node's output.
The type of the input data expected by the destination node.
The source AI agent node, which emits data that needs to be forwarded.
The destination AI agent node, which receives the forwarded data.
A transformation function that takes the graph execution context and the output from the source node, and produces an optional intermediate compatible output.
Functions
Constructs and finalizes an AIAgentEdge connecting the specified source and destination nodes.
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.