IngestContext
Defined in: packages/memory-ltm/src/ingest/types.ts:16
Mutable context threaded through the 13-step ingest pipeline.
Properties
Section titled “Properties”aborted
Section titled “aborted”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).
abortReason?
Section titled “abortReason?”
optionalabortReason?:string
Defined in: packages/memory-ltm/src/ingest/types.ts:51
content
Section titled “content”content:
string
Defined in: packages/memory-ltm/src/ingest/types.ts:27
Content after privacy filtering (step 1).
contentHash
Section titled “contentHash”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
Section titled “detectedTopics”detectedTopics:
string[]
Defined in: packages/memory-ltm/src/ingest/types.ts:40
Topics detected by TopicDetectorStep (step 4), mirrored into tags.
duplicateId?
Section titled “duplicateId?”
optionalduplicateId?:string
Defined in: packages/memory-ltm/src/ingest/types.ts:53
ID of the existing memory when aborting due to exact dedup.
metadata
Section titled “metadata”metadata:
Record<string,unknown>
Defined in: packages/memory-ltm/src/ingest/types.ts:31
Metadata accumulator — importance annotation added in step 5.
organizationId?
Section titled “organizationId?”
optionalorganizationId?:string
Defined in: packages/memory-ltm/src/ingest/types.ts:19
originalContent
Section titled “originalContent”originalContent:
string
Defined in: packages/memory-ltm/src/ingest/types.ts:21
The original raw content submitted by the caller.
originalMetadata
Section titled “originalMetadata”originalMetadata:
Record<string,unknown> |null
Defined in: packages/memory-ltm/src/ingest/types.ts:23
originalTags
Section titled “originalTags”originalTags:
string[]
Defined in: packages/memory-ltm/src/ingest/types.ts:22
redactions
Section titled “redactions”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
Section titled “userId”userId:
string
Defined in: packages/memory-ltm/src/ingest/types.ts:18