MemoryAddToolConfig
Defined in: src/memory/types.ts:175
Configuration for the add_memory tool. Extends MemoryToolConfig with an explicit
allowlist of stores the tool may write to.
Extends
Section titled “Extends”Properties
Section titled “Properties”optional name?: string;Defined in: src/memory/types.ts:166
Custom tool name.
Inherited from
Section titled “Inherited from”description?
Section titled “description?”optional description?: string;Defined in: src/memory/types.ts:168
Custom tool description.
Inherited from
Section titled “Inherited from”stores?
Section titled “stores?”optional stores?: (string | MemoryStore)[];Defined in: src/memory/types.ts:181
The writable stores the add_memory tool may write to, given as store names or the
MemoryStore instances themselves. Each must be a configured, writable store.
Omit (or set addToolConfig: true) to allow all writable stores.
waitForWrites?
Section titled “waitForWrites?”optional waitForWrites?: boolean;Defined in: src/memory/types.ts:189
Whether the tool waits for store writes before returning to the model. Defaults to true.
true(default): waits for writes — the tool returns{ stored }on success, or surfaces a failure to the model if any store write fails.false: fire-and-forget — the tool returns{ accepted }once writes are dispatched (so a slow backend never blocks the agent loop); per-store failures are logged.