Skip to content

MemoryManager

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/memory/memory-manager.ts

Methods

MethodSignatureReturns
markmark(memory: SessionMemory, relatedFiles: string[])string
recallrecall(query: Partial<Omit<MemoryQuery, 'projectId'>>)MemoryRecord[]
extractAndPersistextractAndPersist(ctx: SessionContext)Promise<number>
formatForContextformatForContext(memories: MemoryRecord[])string
getget(id: string)`MemoryRecord
deletedelete(id: string)boolean
searchsearch(search: string, limit: number)MemoryRecord[]
consolidateconsolidate()ConsolidationReport
countcount()number
getProjectIdgetProjectId()string

Where it refuses work

  • MemoryManager stops the work with Error when !this.modelCall — “MemoryManager: modelCall is required for extractAndPersist()”.
  • MemoryManager stops the work with an early return when !prompt.
  • MemoryManager stops the work with an early return when memories.length === 0.

Was this page helpful?

Download as PDF