AIAgentGraphStrategy
Represents a strategy for managing and executing AI agent workflows built as subgraphs of interconnected nodes.
Represents a strategy for managing and executing AI agent workflows built as subgraphs of interconnected nodes.
Represents a strategy for managing and executing AI agent workflows built as subgraphs of interconnected nodes.
Constructors
Types
Companion object for the AIAgentGraphStrategy class.
Properties
The directed edges connecting this node to other nodes in the AI agent strategy graph. Each edge defines the flow and optional transformation of output data from this node to another.
The directed edges connecting this node to other nodes in the AI agent strategy graph. Each edge defines the flow and optional transformation of output data from this node to another.
The directed edges connecting this node to other nodes in the AI agent strategy graph. Each edge defines the flow and optional transformation of output data from this node to another.
Represents the metadata of the subgraph associated with the AI agent strategy.
Represents the metadata of the subgraph associated with the AI agent strategy.
Represents the metadata of the subgraph associated with the AI agent strategy.
The finishing node of the strategy, marking the subgraph's endpoint.
The finishing node of the strategy, marking the subgraph's endpoint.
The finishing node of the strategy, marking the subgraph's endpoint.
The starting node of the strategy, initiating the subgraph execution. By default, the start node receives the agent input and passes it through unchanged to the next node.
The starting node of the strategy, initiating the subgraph execution. By default, the start node receives the agent input and passes it through unchanged to the next node.
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.
Extension function to generate a Mermaid diagram from an agent graph strategy.
Enforces execution to start at the specified node with the given input, overriding the default execution flow.
Enforces execution to start at the specified node with the given input, overriding the default execution flow.
Enforces execution to start at the specified node with the given input, overriding the default execution flow.
Executes the AI agent's strategy using the provided context and input.
Executes the AI agent's strategy using the provided context and input.
Executes the AI agent's strategy using the provided context and input.
Executes the node operation using the provided execution context and input, bypassing static type checks. This method internally performs an unchecked cast of input to TInput and delegates to execute. The caller is responsible for ensuring that input is actually assignable to TInput; otherwise a ClassCastException may be thrown at the call site or later during execution.
Executes the node operation using the provided execution context and input, bypassing static type checks. This method internally performs an unchecked cast of input to TInput and delegates to execute. The caller is responsible for ensuring that input is actually assignable to TInput; otherwise a ClassCastException may be thrown at the call site or later during execution.
Executes the node operation using the provided execution context and input, bypassing static type checks. This method internally performs an unchecked cast of input to TInput and delegates to execute. The caller is responsible for ensuring that input is actually assignable to TInput; otherwise a ClassCastException may be thrown at the call site or later during execution.
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.
Constructs an instance of AIAgentEventGraph by converting the metadata information of the current AIAgentGraphStrategy into its graph representation. The method creates nodes and edges that define the structure and flow of execution for the underlying AI agent strategy.