RankedMemory
Defined in: src/lib/memory/types.ts:51
A ranked memory returned by recall(). Shape is uniform across kinds —
kind discriminates, kind-specific metadata is optional.
Properties
content
content:
string
Defined in: src/lib/memory/types.ts:54
conversationId?
optionalconversationId:string
Defined in: src/lib/memory/types.ts:91
createdAt
createdAt:
Date
Defined in: src/lib/memory/types.ts:95
eventTimeEnd?
optionaleventTimeEnd:number|null
Defined in: src/lib/memory/types.ts:80
eventTimeKind?
optionaleventTimeKind:"point"|"range"|"ongoing"|null
Defined in: src/lib/memory/types.ts:81
eventTimeStart?
optionaleventTimeStart:number|null
Defined in: src/lib/memory/types.ts:79
Anchored event-time for the fact (the date the underlying event
occurred, not the write time). When present, the recall executor
surfaces it to the LLM as (event: YYYY-MM-DD) so the answer model
can do date arithmetic for temporal-reasoning questions. Null /
undefined means the fact has no anchored date.
factType?
optionalfactType:string|null
Defined in: src/lib/memory/types.ts:89
Typed memory (PR1) — the extractor’s FactType classification for this fact, threaded through the same channel as the event-time anchors so recall results (and UI) can show the type without a second DB read. Null/undefined on legacy/untyped/manual facts. Kept as a loose string (not narrowed to FactType) since it originates from a stored column.
folderId?
optionalfolderId:string|null
Defined in: src/lib/memory/types.ts:61
id
id:
string
Defined in: src/lib/memory/types.ts:52
kind
kind:
MemoryKind
Defined in: src/lib/memory/types.ts:53
lastObservedAt?
optionallastObservedAt:number|null
Defined in: src/lib/memory/types.ts:66
C3 re-observation watermark (Unix ms). Null/undefined when the fact has never been merge-reinforced since the column landed.
messageId?
optionalmessageId:string
Defined in: src/lib/memory/types.ts:92
observationTrend?
optionalobservationTrend:ObservationTrend
Defined in: src/lib/memory/types.ts:71
C2 observation-trend label derived from createdAt / lastObservedAt / proofCount over 30/90-day windows. Fact-only; omitted for chunks.
proofCount?
optionalproofCount:number
Defined in: src/lib/memory/types.ts:59
role?
optionalrole:"user"|"assistant"
Defined in: src/lib/memory/types.ts:93
score
score:
number
Defined in: src/lib/memory/types.ts:55
scoreBreakdown?
optionalscoreBreakdown:ScoreBreakdown
Defined in: src/lib/memory/types.ts:56
source?
optionalsource:string
Defined in: src/lib/memory/types.ts:60
sourceChunkIds?
optionalsourceChunkIds:string[]
Defined in: src/lib/memory/types.ts:58
updatedAt
updatedAt:
Date
Defined in: src/lib/memory/types.ts:96