MemoryManagerConfig
Defined in: src/memory/types.ts:258
Configuration for the MemoryManager.
Properties
Section titled “Properties”stores
Section titled “stores”stores: MemoryStore[];Defined in: src/memory/types.ts:260
One or more memory stores to manage.
searchToolConfig?
Section titled “searchToolConfig?”optional searchToolConfig?: boolean | MemoryToolConfig;Defined in: src/memory/types.ts:262
Search tool configuration. Defaults to true.
addToolConfig?
Section titled “addToolConfig?”optional addToolConfig?: boolean | MemoryAddToolConfig;Defined in: src/memory/types.ts:267
Add tool configuration. Defaults to false (opt-in). true lets the tool write to all
writable stores; pass a MemoryAddToolConfig with stores to restrict it to specific ones.
injection?
Section titled “injection?”optional injection?: boolean | MemoryInjectionConfig;Defined in: src/memory/types.ts:282
Memory context injection. Defaults to false (opt-in). true uses the default injection
settings; pass a MemoryInjectionConfig to customize retrieval, timing, and formatting.
true is equivalent to:
{ trigger: 'userTurn', // inject only on a fresh user ask maxEntries: 5, // retrieve and inject up to 5 entries // query: the latest user text on a user turn, else the most recent assistant text // format: a <memory> block with one <entry source="STORE_NAME"> per result (content escaped)}