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.
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.
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.
Constructors
Creates an instance of AIAgentStorage.
Creates an instance of AIAgentStorage.
Functions
Creates a copy of the current storage.
Creates a copy of the current storage.
Creates a copy of the current storage.
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.
Puts the contents of the other storage instance into the current storage. This method combines key-value pairs from the specified storage with the current one. If a key exists in both storages, the value from the given storage will overwrite the existing value.
Adds all key-value pairs from the given map to the storage.
Puts the contents of the other storage instance into the current storage. This method combines key-value pairs from the specified storage with the current one. If a key exists in both storages, the value from the given storage will overwrite the existing value.
Adds all key-value pairs from the given map to the storage.
Puts the contents of the other storage instance into the current storage. This method combines key-value pairs from the specified storage with the current one. If a key exists in both storages, the value from the given storage will overwrite the existing value.
Adds all key-value pairs from the given map to the storage.
Adds serialized storage entries from the given map.
Adds serialized storage entries from the given map.
Adds serialized storage entries from the given map.
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.
Returns serialized storage entries keyed by AIAgentStorageKey.name.
Returns serialized storage entries keyed by AIAgentStorageKey.name.
Returns serialized storage entries keyed by AIAgentStorageKey.name.