Access the underlying manager for advanced usage.
Access the underlying standalone Memory facade for advanced usage.
Optional backend: ICognitiveMemoryManager | StandaloneMemoryBackendStatic wrapCreate an AgentMemory wrapping an existing CognitiveMemoryManager. Use this in wunderland where the manager is already constructed.
Static wrapCreate an AgentMemory wrapping the standalone SQLite-first Memory facade.
Static sqliteCreate an initialized SQLite-backed AgentMemory for standalone usage.
Optional config: MemoryConfigInitialize the cognitive-manager path. Only needed when constructing the
legacy cognitive backend directly (not via AgentMemory.wrap() or
AgentMemory.sqlite()).
Store information in long-term memory.
Optional options: { Optional type?: MemoryTypeOptional scope?: MemoryScopeOptional scopeOptional sourceOptional tags?: string[]Optional entities?: string[]Optional importance?: numberawait memory.remember("User prefers dark mode");
await memory.remember("Deploy by Friday", { type: 'prospective', tags: ['deadline'] });
Recall memories relevant to a query.
Optional options: SearchOptionsconst results = await memory.recall("what does the user prefer?");
for (const m of results.memories) {
console.log(m.content, m.retrievalScore);
}
Search memories (alias for recall with simpler return).
Optional options: SearchOptionsFeed a conversation turn to the observational memory system. The Observer creates dense notes when the token threshold is reached.
await memory.observe('user', "Can you help me debug this?");
await memory.observe('assistant', "Sure! The issue is in your useEffect...");
Get assembled memory context for prompt injection within a token budget.
Optional options: { Optional tokenRegister a prospective memory (reminder/intention).
List active reminders.
Memory health diagnostics.
Ingest files, directories, or URLs. Available only when backed by the standalone SQLite-first Memory facade.
Optional options: IngestOptionsImport previously exported memory data. Available only when backed by the standalone SQLite-first Memory facade.
Optional options: ImportOptionsExport memory data. Available only when backed by the standalone SQLite-first Memory facade.
Optional options: ExportOptions
High-level memory facade for AI agents.
Wraps either
ICognitiveMemoryManageror the standaloneMemoryfacade with a simple API that hides PAD mood models, HEXACO traits, SQLite storage details, and internal architecture.