Skip to content

IngestContext

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

Mutable context threaded through the 13-step ingest pipeline.

aborted: boolean

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

When true the pipeline stops and the caller should treat this as a no-op (e.g. exact duplicate detected).


optional abortReason?: string

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


content: string

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

Content after privacy filtering (step 1).


contentHash: string | null

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

Content hash (SHA-256 of normalised content) computed in step 2. Used for exact-duplicate detection without a vector lookup.


detectedTopics: string[]

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

Topics detected by TopicDetectorStep (step 4), mirrored into tags.


optional duplicateId?: string

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

ID of the existing memory when aborting due to exact dedup.


metadata: Record<string, unknown>

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

Metadata accumulator — importance annotation added in step 5.


optional organizationId?: string

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


originalContent: string

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

The original raw content submitted by the caller.


originalMetadata: Record<string, unknown> | null

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


originalTags: string[]

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


redactions: string[]

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

Description of what the privacy filter redacted (for audit).


tags: string[]

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

Tags after topic detection enrichment (step 4).


userId: string

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