PersistentMemoryConfig
Runtime configuration for persistent memory.
Properties
Section titled “Properties”autoLoad?
Section titled “autoLoad?”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 |
|---|---|
|
|
|
|
|
defaultCharLimit?
Section titled “defaultCharLimit?”optional defaultCharLimit?: number;Default character limit per block when not specified at write time.
scanForInjection?
Section titled “scanForInjection?”optional scanForInjection?: boolean;When true (default), reject writes whose content matches a prompt-injection pattern.
store?
Section titled “store?”optional store?: PersistentMemoryStore;The store backend. Defaults to FilePersistentMemoryStore when omitted.