The type of the storage data, defaults to IStorageData.
Optional
callbacksOptional partial set of lifecycle callbacks for storage events, allowing customization.
Optional
docOptional description for documentation purposes, aiding in storage usage understanding.
The name of the embedding mechanism used for indexing and searching storage data.
Optional
getOptional function to retrieve data from the storage, overriding default behavior.
Optional
getOptional function to provide the default data for the storage, resolved in persistence logic.
Optional
persistOptional flag to enable serialization of storage data to persistent storage (e.g., hard drive).
Optional
setOptional function to persist storage data to the hard drive, overriding default behavior.
Optional
sharedOptional flag indicating whether the storage instance is shared across all agents for a client.
The unique name of the storage within the swarm.
Function to generate an index for a storage item, used for search and retrieval.
Interface representing the schema for storage configuration. Defines how storage behaves, including persistence, indexing, and data access.