WorkingMemoryImpl
@daydreamsai/core / WorkingMemoryImpl
Class: WorkingMemoryImpl
Defined in: packages/core/src/memory/working-memory.ts:10
Working Memory - manages current session state
Implements
Constructors
Constructor
new WorkingMemoryImpl(
memory):WorkingMemoryImpl
Defined in: packages/core/src/memory/working-memory.ts:11
Parameters
memory
Returns
WorkingMemoryImpl
Methods
clear()
clear(
contextId):Promise<void>
Defined in: packages/core/src/memory/working-memory.ts:120
Parameters
contextId
string
Returns
Promise<void>
Implementation of
create()
create(
contextId):Promise<WorkingMemoryData>
Defined in: packages/core/src/memory/working-memory.ts:13
Parameters
contextId
string
Returns
Promise<WorkingMemoryData>
Implementation of
get()
get(
contextId):Promise<WorkingMemoryData>
Defined in: packages/core/src/memory/working-memory.ts:39
Parameters
contextId
string
Returns
Promise<WorkingMemoryData>
Implementation of
push()
push<
TContext>(contextId,entry,ctx,agent,options?):Promise<void>
Defined in: packages/core/src/memory/working-memory.ts:58
Type Parameters
TContext
TContext extends AnyContext = AnyContext
Parameters
contextId
string
entry
ctx
AgentContext<TContext>
agent
options?
Returns
Promise<void>
Implementation of
set()
set(
contextId,data):Promise<void>
Defined in: packages/core/src/memory/working-memory.ts:52
Parameters
contextId
string
data
Returns
Promise<void>
Implementation of
summarize()
summarize(
contextId):Promise<string>
Defined in: packages/core/src/memory/working-memory.ts:137
Parameters
contextId
string
Returns
Promise<string>