AIAgentStorage
Concurrent-safe key-value storage for an agent. You can create typed keys for your data using the createStorageKey function and set and retrieve data using it by calling set and get.
Represents a storage key used for identifying and accessing data associated with an AI agent.
The generic type parameter T specifies the type of data associated with this key, ensuring type safety when storing and retrieving data in the context of an AI agent.
Concurrent-safe key-value storage for an agent. You can create typed keys for your data using the createStorageKey function and set and retrieve data using it by calling set and get.
Functions
Retrieves the value associated with the given key from the storage.
Retrieves the value associated with the given key from the storage.
Retrieves the non-null value associated with the given key from the storage. If the key does not exist in the storage, a NoSuchElementException is thrown.
Retrieves the non-null value associated with the given key from the storage. If the key does not exist in the storage, a NoSuchElementException is thrown.
Retrieves the non-null value associated with the given key from the storage. If the key does not exist in the storage, a NoSuchElementException is thrown.
Adds all key-value pairs from the given map to the storage.
Adds all key-value pairs from the given map to the storage.
Adds all key-value pairs from the given map to the storage.
Removes the value associated with the given key from the storage.
Removes the value associated with the given key from the storage.
Sets the value associated with the given key in the storage.
Sets the value associated with the given key in the storage.
Converts the storage to a map representation.
Converts the storage to a map representation.
Converts the storage to a map representation.