EdgeAssertionsBuilder
A builder class used to facilitate the creation and management of edge assertions in a stage context. Delegates functionality to a local agent stage context mock builder for shared behaviors.
Constructors
Types
Properties
Represents the input to be used by the AI agent during its execution. This variable can be set to define specific data or context relevant to the agent's task. It is nullable, indicating that the agent may operate without an explicitly defined input.
Represents the KType of the agentInput.
A mutable list that holds all the defined EdgeAssertion
instances for the current context.
Specifies the configuration for the AI agent.
Represents the environment used by the AI agent to interact with external systems.
Represents the LLM context associated with an AI agent during testing scenarios. This variable is used to configure and manage the context for an AI agent's large language model (LLM) interactions, including tools, prompt handling, and model-specific attributes.
Represents an optional state manager for an AI agent in the context of building its mock environment. The stateManager
is responsible for maintaining and managing the internal state of the agent in a thread-safe manner, ensuring consistency during state modifications.
Represents a concurrent-safe key-value storage used for managing data within the context of mock AI agent construction. This property typically holds an optional instance of AIAgentStorage, which provides methods to store, retrieve, and manage typed key-value pairs in a thread-safe manner.
Represents the identifier of a strategy to be used within the context of an AI agent.
A collection that stores assertions ensuring an unconditional connection between nodes in a graph testing context. Each assertion represents a defined relationship where a node always leads to a specified target node.
Functions
Creates an assertion to verify that the current node always leads to the given target node.
Builds and returns an instance of AIAgentContextBase based on the current properties of the builder. This method creates a finalized AI agent context, integrating all the specified configurations, environment settings, and components into a coherent context object ready for use.
Creates a deep copy of the current EdgeAssertionsBuilder instance, duplicating its state and context.
Executes a given block of logic within the context of a copied instance of the current EdgeAssertionsBuilder
.
Associates the given output with the current node reference, creating a pair that represents the node and its corresponding output.