AIAgentSubgraph
AIAgentSubgraph represents a structured subgraph within an AI agent workflow. It serves as a logical segment containing a defined starting and ending point. The subgraph is responsible for executing tasks in a step-by-step manner, managing iterations, and handling tool selection strategies.
Parameters
The type of input data accepted by the subgraph.
The type of output data returned by the subgraph.
The name of the subgraph.
The starting node of the subgraph, which initiates the processing.
The finishing node of the subgraph, which concludes the processing.
Strategy determining which tools should be available during this subgraph's execution.
Inheritors
Constructors
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 the desired operation based on the input and the provided context. This function determines the execution strategy based on the tool selection strategy configured in the class.
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.