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 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.
Type 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.
Functions
Creates an edge that transforms an intermediate output into a Message.User using the provided transform.
Creates an edge that transforms an intermediate output into a Message.User using the provided transform.
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 the outputs of the current processing edge based on their type, forwarding only those that are instances of the specified class.
Filters intermediate outputs to only process those that are instances of the specified class type.
Filters the intermediate output to only Message instances that contain parts of type T, and transforms the output to a list of those parts.
Creates an edge that extracts text content from message parts.
Creates an edge that filters assistant messages containing tool calls matching the provided condition. The default condition onToolCalls { true } accepts any message with at least one tool call.
Transforms the intermediate output of the AIAgentNode by applying a given transformation block.
Transforms the intermediate output of the edge by applying the given action. This is an alias for transformed providing naming consistency with the node builder API.