Kind: Class
Source: atloria-monorepo/libs/agent-core/src/memory/memory-manager.ts
Methods
| Method | Signature | Returns |
|---|---|---|
mark | mark(memory: SessionMemory, relatedFiles: string[]) | string |
recall | recall(query: Partial<Omit<MemoryQuery, 'projectId'>>) | MemoryRecord[] |
extractAndPersist | extractAndPersist(ctx: SessionContext) | Promise<number> |
formatForContext | formatForContext(memories: MemoryRecord[]) | string |
get | get(id: string) | `MemoryRecord |
delete | delete(id: string) | boolean |
search | search(search: string, limit: number) | MemoryRecord[] |
consolidate | consolidate() | ConsolidationReport |
count | count() | number |
getProjectId | getProjectId() | string |
Where it refuses work
MemoryManagerstops the work withErrorwhen!this.modelCall— “MemoryManager: modelCall is required for extractAndPersist()”.MemoryManagerstops the work with an early return when!prompt.MemoryManagerstops the work with an early return whenmemories.length === 0.
Was this page helpful?