/** * Memory categories for classification. * * Categories help with: * - Storage: Admin knows what "type" of memory to capture * - Retrieval: Can filter by category for more precise recall * * Guidelines: * - preference: User preferences, settings, likes/dislikes * - decision: Choices made, conclusions reached * - fact: Factual information, verified data * - error: Errors made, bugs spotted, problems encountered * - learned: Verified conclusions, lessons learned, insights * - uncertain: Information that needs further verification */ export declare enum Category { PREFERENCE = "preference", FACT = "fact", DECISION = "decision", ERROR = "error", LEARNED = "learned", UNCERTAIN = "uncertain" } /** * Metadata schema for memory entries. * * Use metadata to store: * - Source references (note_path, url, etc.) * - Tags for additional filtering * - Validation status * - Any custom fields needed * * Example: * { * "note_path": "05-Knowledge/Research/memory.md", * "note_title": "Memory System Analysis", * "tags": ["memory", "lancedb", "plugin"], * "validated": true, * "source_url": "https://github.com/..." * } */ export interface MemoryMetadata { note_path?: string; note_title?: string; source_url?: string; tags?: string[]; validated?: boolean; validated_at?: number; created_via?: string; related_ids?: string[]; [key: string]: unknown; } export interface MemoryEntry { id: string; text: string; vector: number[]; category: Category; scope: string; importance: number; timestamp: number; metadata?: string; source: string; access_count?: number; last_accessed?: number; } export interface MemorySearchResult extends MemoryEntry { score: number; } export interface MemoryStats { total: number; byCategory: Record; byScope: Record; oldestTimestamp?: number; newestTimestamp?: number; } export interface StoreMemoryParams { text: string; category?: Category; scope?: string; importance?: number; metadata?: Record; source?: string; } export interface RecallMemoriesParams { query: string; scope?: string; category?: Category; limit?: number; minImportance?: number; } export interface ForgetMemoriesParams { query?: string; memoryId?: string; scope?: string; } export interface ListMemoriesParams { scope?: string; category?: Category; limit?: number; } export interface UpdateMemoryParams { memoryId: string; text?: string; category?: Category; importance?: number; scope?: string; } export interface MemoryConfig { ollamaUrl: string; embeddingModel: string; embeddingDim: number; dbPath: string; } export declare const DEFAULT_CONFIG: MemoryConfig; //# sourceMappingURL=types.d.ts.map