AIAgentLLMContext
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.
Constructors
Properties
LLM currently associated with this context.
The PromptExecutor responsible for performing operations on the current prompt.
A registry that contains metadata about available tools.
List of current tools associated with this agent context.
Functions
Returns the current prompt used in the LLM context.
Creates a deep copy of this LLM context.
Executes a read session within the AIAgentLLMContext, ensuring concurrent safety with active write session and other read sessions.
Updates the current AIAgentLLMContext
with a new prompt and ensures thread-safe access using a read lock.
Executes a write session on the AIAgentLLMContext, ensuring that all active write and read sessions are completed before initiating the write session.