AIAgentSubgraph
Represents a subgraph within an AI agent execution strategy capable of processing input and producing output.
A subgraph is a modular component of a larger execution graph, defined by a StartNode as the entry point and a FinishNode as the exit point. The subgraph may implement tool selection strategies, incorporate language model support, and apply
Represents a subgraph within an AI agent execution strategy capable of processing input and producing output.
A subgraph is a modular component of a larger execution graph, defined by a StartNode as the entry point and a FinishNode as the exit point. The subgraph may implement tool selection strategies, incorporate language model support, and apply
Represents a subgraph within an AI agent execution strategy capable of processing input and producing output.
A subgraph is a modular component of a larger execution graph, defined by a StartNode as the entry point and a FinishNode as the exit point. The subgraph may implement tool selection strategies, incorporate language model support, and apply
Constructors
Types
Companion object for AIAgentSubgraph.
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.
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.
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.
Functions
Adds a directed edge from the current node, enabling connections between this node and other nodes in the AI agent strategy graph.
Adds a directed edge from the current node, enabling connections between this node and other nodes in the AI agent strategy graph.
Adds a directed edge from the current node, enabling connections between this node and other nodes in the AI agent strategy graph.
Sets a forced node for the entity.
Sets a forced node for the entity.
Sets a forced node for the entity.
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.
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.
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.
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.
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.
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.
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.
Retrieves the current execution point, which consists of a specific node in the execution graph and an optional input. If no forced node is defined, the method returns null.
Retrieves the current execution point, which consists of a specific node in the execution graph and an optional input. If no forced node is defined, the method returns null.
Retrieves the current execution point, which consists of a specific node in the execution graph and an optional input. If no forced node is defined, the method returns null.
Resets the currently enforced execution point for the AI agent, including clearing any forced node and input data. Once the execution point is reset, the system will revert to its default execution behavior without targeting a specific node explicitly.
Resets the currently enforced execution point for the AI agent, including clearing any forced node and input data. Once the execution point is reset, the system will revert to its default execution behavior without targeting a specific node explicitly.
Resets the currently enforced execution point for the AI agent, including clearing any forced node and input data. Once the execution point is reset, the system will revert to its default execution behavior without targeting a specific node explicitly.
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.
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.
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.