Skip to content

MemoryManagerConfig

Defined in: src/memory/types.ts:258

Configuration for the MemoryManager.

stores: MemoryStore[];

Defined in: src/memory/types.ts:260

One or more memory stores to manage.


optional searchToolConfig?: boolean | MemoryToolConfig;

Defined in: src/memory/types.ts:262

Search tool configuration. Defaults to true.


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.


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)
}