loadMemory
loadMemory<
TMessageOptions>(snapshot,options?):Memory<Record<string,never>,TMessageOptions>
Defined in: .build/typescript/packages/core/src/memory/factories.ts:139
Creates a new Memory instance from a snapshot
Type Parameters
Section titled “Type Parameters”TMessageOptions
Section titled “TMessageOptions”TMessageOptions extends object = object
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”string
The snapshot to load from
options?
Section titled “options?”MemoryOptions<TMessageOptions>
Optional MemoryOptions to apply when loading (including memory blocks)
Returns
Section titled “Returns”Memory<Record<string, never>, TMessageOptions>
A new Memory instance with the snapshot data and provided options