/** * Vector Store Adapter * * Bridges the VectorService to the MemoryManager's IVectorStoreAdapter interface. * Enables agents to use any supported vector database for long-term memory. */ import { IVectorStoreAdapter } from './memory-manager'; import { VectorService, IVectorServiceOptions } from '../vector'; /** * Configuration for the VectorService-based adapter */ export interface IVectorStoreAdapterConfig { /** Vector service options */ vectorService?: VectorService; /** Or provide config to create a new service */ vectorConfig?: IVectorServiceOptions; /** Namespace for this adapter's vectors */ namespace?: string; } /** * Adapter that wraps VectorService for use with MemoryManager */ export declare class VectorServiceAdapter implements IVectorStoreAdapter { private vectorService; private namespace?; private initialized; constructor(config: IVectorStoreAdapterConfig); /** * Ensure the vector service is connected */ private ensureConnected; /** * Store embeddings with content and metadata */ upsert(vectors: Array<{ id: string; content: string; embedding: number[]; metadata?: Record; }>): Promise; /** * Query similar vectors */ query(embedding: number[], topK: number, filter?: Record): Promise; score: number; }>>; /** * Delete vectors by IDs */ delete(ids: string[]): Promise; /** * Clear namespace */ clear(namespace?: string): Promise; /** * Get the underlying vector service */ getVectorService(): VectorService; /** * Disconnect from the vector service */ disconnect(): Promise; } /** * Create a vector store adapter with default configuration */ export declare function createVectorStoreAdapter(config?: Partial): VectorServiceAdapter; /** * Create a vector store adapter using Pinecone */ export declare function createPineconeAdapter(options: { apiKey: string; endpoint: string; index: string; dimensions: number; namespace?: string; }): VectorServiceAdapter; /** * Create a vector store adapter using Qdrant */ export declare function createQdrantAdapter(options: { endpoint: string; apiKey?: string; collection: string; dimensions: number; namespace?: string; }): VectorServiceAdapter; /** * Create a vector store adapter using Weaviate */ export declare function createWeaviateAdapter(options: { endpoint: string; apiKey?: string; className: string; dimensions: number; namespace?: string; }): VectorServiceAdapter; /** * Create an in-memory vector store adapter */ export declare function createMemoryAdapter(options?: { index?: string; dimensions?: number; namespace?: string; }): VectorServiceAdapter; export default VectorServiceAdapter;