OptionalcallbacksOptional partial set of callbacks for embedding events, allowing customization of creation and comparison.
The unique name of the embedding mechanism within the swarm.
OptionalpersistOptional flag to enable serialization of navigation stack and active agent state to persistent storage (e.g., hard drive).
OptionalreadRetrieves the embedding vector for a specific string hash, returning null if not found. Used to check if a precomputed embedding exists in the cache.
OptionalwriteStores an embedding vector for a specific string hash, persisting it for future retrieval. Used to cache computed embeddings to avoid redundant processing.
Interface representing the schema for configuring an embedding mechanism. Defines how embeddings are created and compared within the swarm.