Skip to content

PersistentMemoryConfig

Runtime configuration for persistent memory.

optional autoLoad?: object[];

Which blocks to auto-load at session start and inject into the system prompt. Defaults: [{ scope: 'user', key: 'USER' }, { scope: 'agent', key: 'MEMORY' }]. Set to [] to disable auto-injection (the tool is still available).

Name Type

key

string

scope

MemoryBlockScope


optional defaultCharLimit?: number;

Default character limit per block when not specified at write time.


optional scanForInjection?: boolean;

When true (default), reject writes whose content matches a prompt-injection pattern.


optional store?: PersistentMemoryStore;

The store backend. Defaults to FilePersistentMemoryStore when omitted.