Skip to Content
Anuma SDKReactInternalInterfacesUpdateVaultMemoryOptions

UpdateVaultMemoryOptions

Defined in: src/lib/db/memoryVault/types.ts:56 

Properties

content

content: string

Defined in: src/lib/db/memoryVault/types.ts:57 


embedding?

optional embedding: string | null

Defined in: src/lib/db/memoryVault/types.ts:63 

JSON-stringified embedding vector to persist, or null to clear stale embedding


eventTime?

optional eventTime: object

Defined in: src/lib/db/memoryVault/types.ts:83 

W6 temporal lane — write the event-time fields on update. Use during auto-merge to preserve (or refine) the original event-time signal when a new observation lands on an existing fact. Omit to leave the existing values untouched.

end

end: number | null

kind

kind: "point" | "range" | "ongoing" | null

start

start: number | null


folderId?

optional folderId: string | null

Defined in: src/lib/db/memoryVault/types.ts:61 

If provided, moves the memory to this folder.


preserveUpdatedAt?

optional preserveUpdatedAt: boolean

Defined in: src/lib/db/memoryVault/types.ts:94 

When true, restore the existing updated_at after the write so the recency multiplier doesn’t see a re-observation as a brand-new fact. Set by auto-merge/consolidate paths — they want proof_count to bump without inflating recency on top.


proofCount?

optional proofCount: number

Defined in: src/lib/db/memoryVault/types.ts:69 

Set an absolute proof count. Prefer proofCountIncrement for re-observation paths so the read+write happens inside the writer and concurrent retains can’t lose updates.


proofCountIncrement?

optional proofCountIncrement: number

Defined in: src/lib/db/memoryVault/types.ts:74 

Atomically bump proof_count by this delta inside the write block. Reads the current value from the in-memory record at write time, so two parallel retain() calls observe each other’s commits and neither loses its increment. Wins over proofCount when both are set.


scope?

optional scope: string

Defined in: src/lib/db/memoryVault/types.ts:59 

If provided, updates the memory’s scope.


source?

optional source: string

Defined in: src/lib/db/memoryVault/types.ts:76 

Set source (“manual” | “auto-extracted” | “capsule”).


sourceChunkIds?

optional sourceChunkIds: string[]

Defined in: src/lib/db/memoryVault/types.ts:65 

Replace source-chunk-ids list (used during merge to accumulate provenance).

Last updated on