Skip to content

CorpusConsolidationOptions

Defined in: packages/memory-ltm/src/types.ts:253

optional batchSize?: number

Defined in: packages/memory-ltm/src/types.ts:263

Seed rows loaded per page (cursor-resumable). Defaults to 100, capped at 1000.


optional cursor?: string

Defined in: packages/memory-ltm/src/types.ts:265

Resume from a previously returned cursor.


optional dryRun?: boolean

Defined in: packages/memory-ltm/src/types.ts:273

REVIEW GATE (pinned Decision 3): defaults to TRUE. A dry run reports the clusters it WOULD merge and mutates absolutely nothing. Only an explicit dryRun: false writes.


optional limit?: number

Defined in: packages/memory-ltm/src/types.ts:267

Stop after scanning at most this many seed rows (pair with cursor for chunked runs).


optional scope?: string

Defined in: packages/memory-ltm/src/types.ts:261

Restrict the pass to a single namespace scope. Omit to scan all scopes — each seed still only ever clusters within its OWN scope (an unscoped memory never merges with a scoped one, mirroring write-time dedup).


optional userId?: string

Defined in: packages/memory-ltm/src/types.ts:255

Restrict the pass to a single user. Omit to scan every user.