MemorySystem
@daydreamsai/core / MemorySystem
Class: MemorySystem
Defined in: packages/core/src/memory/memory-system.ts:23
Simplified Memory System - basic storage only
Implements
Constructors
Constructor
new MemorySystem(
config):MemorySystem
Defined in: packages/core/src/memory/memory-system.ts:34
Parameters
config
Returns
MemorySystem
Properties
episodes
episodes:
EpisodicMemory
Defined in: packages/core/src/memory/memory-system.ts:28
Implementation of
graph
graph:
GraphMemory
Defined in: packages/core/src/memory/memory-system.ts:27
Implementation of
kv
kv:
KeyValueMemory
Defined in: packages/core/src/memory/memory-system.ts:25
Implementation of
vector
vector:
VectorMemory
Defined in: packages/core/src/memory/memory-system.ts:26
Implementation of
working
working:
IWorkingMemory
Defined in: packages/core/src/memory/memory-system.ts:24
Implementation of
Methods
close()
close():
Promise<void>
Defined in: packages/core/src/memory/memory-system.ts:75
Returns
Promise<void>
Implementation of
forget()
forget(
criteria):Promise<void>
Defined in: packages/core/src/memory/memory-system.ts:200
Parameters
criteria
Returns
Promise<void>
Implementation of
initialize()
initialize():
Promise<void>
Defined in: packages/core/src/memory/memory-system.ts:48
Returns
Promise<void>
Implementation of
recall()
recall(
query,options?):Promise<MemoryResult[]>
Defined in: packages/core/src/memory/memory-system.ts:127
Vector/hybrid recall. Accepts string or structured query.
Parameters
query
any
options?
Returns
Promise<MemoryResult[]>
Implementation of
recallOne()
recallOne(
query,options?):Promise<null|MemoryResult>
Defined in: packages/core/src/memory/memory-system.ts:195
Return only the best match or null
Parameters
query
any
options?
Returns
Promise<null | MemoryResult>
Implementation of
remember()
remember(
content,options?):Promise<void>
Defined in: packages/core/src/memory/memory-system.ts:88
Parameters
content
unknown
options?
Returns
Promise<void>
Implementation of
rememberBatch()
rememberBatch(
records,options?):Promise<{ids:string[];warnings?:string[]; }>
Defined in: packages/core/src/memory/memory-system.ts:395
Batch ingestion with optional naive chunking
Parameters
records
any[]
options?
chunk?
{ overlap?: number; size?: number; }
chunk.overlap?
number
chunk.size?
number
upsert?
boolean
Returns
Promise<{ ids: string[]; warnings?: string[]; }>
Implementation of
rememberRecord()
rememberRecord(
record,options?):Promise<{id:string; }>
Defined in: packages/core/src/memory/memory-system.ts:345
Store a structured record into vector memory
Parameters
record
any
options?
upsert?
boolean
Returns
Promise<{ id: string; }>