Package-level declarations
Types
The AIAgentContext interface represents the context of an AI agent in the lifecycle. It provides access to the environment, configuration, LLM context, state management, storage, and other metadata necessary for the operation of the agent. Additionally, it supports features for custom workflows and extensibility.
Represents the execution context for an AI agent operating in a loop. It provides access to critical parts such as the environment, configuration, large language model (LLM) context, state management, and storage. Additionally, it enables the agent to store, retrieve, and manage context-specific data during its execution lifecycle.
Implements the AIAgentGraphContext interface, providing the context required for an AI agent's execution. This class encapsulates configurations, the execution pipeline, agent environment, and tools for handling agent lifecycles and interactions.
The AIAgentGraphContextBase
interface extends the AIAgentContextBase
interface to provide a foundational context specifically tailored for AI agents operating within a graph structure.
Represents the context for an AI agent LLM, managing tools, prompt handling, and interaction with the environment and execution layers. It provides mechanisms for concurrent read and write operations through sessions, ensuring thread safety.
Annotation for marking APIs as detached prompt executors within the AIAgentLLMContext
.
Properties
Functions
Utility function to get AIAgentContext.agentInput and try to cast it to some expected type.
Retrieves a feature from the AIAgentContext.pipeline associated with this context using the specified key.
Retrieves a feature from the AIAgentContext.pipeline associated with this context using the specified key or throws an exception if it is not available.
Retrieves the agent-specific context data associated with the current instance.
Removes the agent-specific context data associated with the current context.
Provides the root context of the current agent. If the root context is not defined, this function defaults to returning the current instance.
Stores the given agent context data within the current AI agent context.