FinishNode
Represents a specialized node within an AI agent strategy graph that marks the endpoint of a subgraph. This node serves as a "finish" node and directly passes its input to its output without modification.
This node enforces the following constraints:
It cannot have outgoing edges, meaning no further nodes can follow it in the execution graph.
It simply returns the input it receives as its output, ensuring no modification occurs at the end of execution.
The name property of the node reflects a uniquely identifiable pattern using the prefix "finish" and the optional subgraph name, enabling traceability of execution flow in multi-subgraph setups.
Parameters
The name of the related subgraph
TypeToken representing TOutput
Type Parameters
The type of data this node processes and produces.
Properties
Represents the directed edges connecting the current node in the AI agent strategy graph to other nodes. Each edge defines the flow and transformation of output data from this node to another.
A suspendable lambda function that defines the execution logic of the node. It operates in the context of an AIAgentGraphContextBase, taking an input of type TInput and producing an output of type TOutput.
The TypeToken representing the type of output produced by the node.
Functions
Adds a directed edge from the current node, enabling connections between this node and other nodes in the AI agent strategy graph.
Executes a specific operation based on the given context and input.
Executes the node operation using the provided execution context and input, bypassing type safety checks. This method internally calls the type-safe execute method after casting the input.
Creates a directed edge from this AIAgentNodeBase to another AIAgentNodeBase, allowing data to flow from the output of the current node to the input of the specified node.
Creates a directed edge from this AIAgentNodeBase to another AIAgentNodeBase, allowing data to flow from the output of the current node to the input of the specified node.
Resolves the edge associated with the provided node output and execution context. Iterates through available edges and identifies the first edge that can successfully process the given node output within the provided context. If a resolvable edge is found, it returns a ResolvedEdge containing the edge and its output. Otherwise, returns null.