AIAgentNodeBase
Represents an abstract node in an AI agent strategy graph, responsible for executing a specific operation and managing directed edges to other nodes.
Parameters
The type of input data this node processes.
The type of output data this node produces.
Inheritors
Types
Properties
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. The lifecycle hooks onBeforeNode
and onAfterNode
are invoked before and after the execution respectively.
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.