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 context for an AI agent of FunctionalAIAgent type, serving as the execution environment and state holder while an agent operates within a predefined pipeline. It extends AIAgentFunctionalContextBase and is designed to allow configuration, state management, and storage for an agent's functional operations.
Base class for functional/planner context implementations across all targets.
Base class for functional/planner context implementations across all targets.
Base class for functional/planner context implementations across all targets.
Base AIAgentContext implementation providing functionality common across platforms
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.
Constructs a new instance of AIAgentLLMContext with the provided parameters.
Constructs a new instance of AIAgentLLMContext with the provided parameters.
Constructs a new instance of AIAgentLLMContext with the provided parameters.
Common AIAgentLLMContext implementation shared across platforms.
Represents a context for the AI agent of PlannerAIAgent type, responsible for managing execution pipelines, configurations, and other contextual data required for agent operations.
Annotation for marking APIs as detached prompt executors within the AIAgentLLMContext.
A builder class responsible for creating and managing subtasks within the context of an AI agent's functional operations.
Builder class to create and configure a subtask with specified input and output types.
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.
Executes a block of code with a modified execution context.
Executes a block of code with a modified execution context, creating a parent-child relationship between execution contexts for tracing purposes.