Skip to content

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.

optional name?: string;

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

Custom tool name.

MemoryToolConfig.name


optional description?: string;

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

Custom tool description.

MemoryToolConfig.description


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.


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.