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 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.
Type 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.
Inheritors
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.
Builds the edge between the 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.