IWorkingMemory
@daydreamsai/core / IWorkingMemory
Interface: IWorkingMemory
Defined in: packages/core/src/memory/types.ts:210
Working Memory - manages current session state
Methods
clear()
clear(
contextId):Promise<void>
Defined in: packages/core/src/memory/types.ts:221
Parameters
contextId
string
Returns
Promise<void>
create()
create(
contextId):Promise<WorkingMemoryData>
Defined in: packages/core/src/memory/types.ts:211
Parameters
contextId
string
Returns
Promise<WorkingMemoryData>
get()
get(
contextId):Promise<WorkingMemoryData>
Defined in: packages/core/src/memory/types.ts:212
Parameters
contextId
string
Returns
Promise<WorkingMemoryData>
push()
push<
TContext>(contextId,entry,ctx,agent,options?):Promise<void>
Defined in: packages/core/src/memory/types.ts:214
Type Parameters
TContext
TContext extends AnyContext = AnyContext
Parameters
contextId
string
entry
ctx
AgentContext<TContext>
agent
options?
Returns
Promise<void>
set()
set(
contextId,data):Promise<void>
Defined in: packages/core/src/memory/types.ts:213
Parameters
contextId
string
data
Returns
Promise<void>
summarize()
summarize(
contextId):Promise<string>
Defined in: packages/core/src/memory/types.ts:222
Parameters
contextId
string
Returns
Promise<string>