| 8 | import { update_user_summary } from './memory/user_summary'; |
| 9 | |
| 10 | export interface OpenMemoryOptions { |
| 11 | mode?: 'local' | 'remote'; |
| 12 | path?: string; |
| 13 | url?: string; |
| 14 | apiKey?: string; |
| 15 | embeddings?: { |
| 16 | provider: 'openai' | 'gemini' | 'ollama' | 'aws' | 'local' | 'synthetic'; |
| 17 | apiKey?: string; |
| 18 | model?: string; |
| 19 | mode?: 'simple' | 'advanced'; |
| 20 | dimensions?: number; |
| 21 | aws?: { |
| 22 | accessKeyId?: string; |
| 23 | secretAccessKey?: string; |
| 24 | region?: string; |
| 25 | }; |
| 26 | ollama?: { |
| 27 | url?: string; |
| 28 | }; |
| 29 | localPath?: string; |
| 30 | }; |
| 31 | tier?: 'fast' | 'smart' | 'deep' | 'hybrid'; |
| 32 | compression?: { |
| 33 | enabled: boolean; |
| 34 | algorithm?: 'semantic' | 'syntactic' | 'aggressive' | 'auto'; |
| 35 | minLength?: number; |
| 36 | }; |
| 37 | decay?: { |
| 38 | intervalMinutes?: number; |
| 39 | threads?: number; |
| 40 | coldThreshold?: number; |
| 41 | reinforceOnQuery?: boolean; |
| 42 | }; |
| 43 | reflection?: { |
| 44 | enabled: boolean; |
| 45 | intervalMinutes?: number; |
| 46 | minMemories?: number; |
| 47 | }; |
| 48 | vectorStore?: { |
| 49 | backend: 'sqlite' | 'pgvector' | 'weaviate'; |
| 50 | }; |
| 51 | langGraph?: { |
| 52 | namespace?: string; |
| 53 | maxContext?: number; |
| 54 | reflective?: boolean; |
| 55 | }; |
| 56 | telemetry?: boolean; |
| 57 | } |
| 58 | |
| 59 | export class OpenMemory { |
| 60 | private mode: 'local' | 'remote'; |
nothing calls this directly
no outgoing calls
no test coverage detected