Skip to Content

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?

optional conversationId: string

Defined in: src/lib/memory/types.ts:91 


createdAt

createdAt: Date

Defined in: src/lib/memory/types.ts:95 


eventTimeEnd?

optional eventTimeEnd: number | null

Defined in: src/lib/memory/types.ts:80 


eventTimeKind?

optional eventTimeKind: "point" | "range" | "ongoing" | null

Defined in: src/lib/memory/types.ts:81 


eventTimeStart?

optional eventTimeStart: 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?

optional factType: 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?

optional folderId: 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?

optional lastObservedAt: 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?

optional messageId: string

Defined in: src/lib/memory/types.ts:92 


observationTrend?

optional observationTrend: 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?

optional proofCount: number

Defined in: src/lib/memory/types.ts:59 


role?

optional role: "user" | "assistant"

Defined in: src/lib/memory/types.ts:93 


score

score: number

Defined in: src/lib/memory/types.ts:55 


scoreBreakdown?

optional scoreBreakdown: ScoreBreakdown

Defined in: src/lib/memory/types.ts:56 


source?

optional source: string

Defined in: src/lib/memory/types.ts:60 


sourceChunkIds?

optional sourceChunkIds: string[]

Defined in: src/lib/memory/types.ts:58 


updatedAt

updatedAt: Date

Defined in: src/lib/memory/types.ts:96 

Last updated on