The type of the storage data, defaults to IStorageData.
OptionalcallbacksOptional partial set of lifecycle callbacks for storage events, allowing customization.
OptionaldocOptional description for documentation purposes, aiding in storage usage understanding.
The name of the embedding mechanism used for indexing and searching storage data.
OptionalgetOptional function to retrieve data from the storage, overriding default behavior.
OptionalgetOptional function to provide the default data for the storage, resolved in persistence logic.
OptionalpersistOptional flag to enable serialization of storage data to persistent storage (e.g., hard drive).
OptionalsetOptional function to persist storage data to the hard drive, overriding default behavior.
OptionalsharedOptional 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.