Skip to Content
Anuma SDKReactInternalFunctionssetMemoryEntitiesOp()

setMemoryEntitiesOp()

setMemoryEntitiesOp(ctx: VaultMemoryOperationsContext, memoryId: string, entities: readonly EntityInput[]): Promise<StoredVaultMemory | null>

Defined in: src/lib/db/memoryVault/operations.ts:1309 

Replace a memory’s topic (entity) links with a user-chosen set and mark the memory topics_user_managed so auto-extraction stops touching its links. Replace semantics: the given entities become the memory’s complete topic set (pass [] to clear all topics — the memory stays user-managed and unclustered). Requires ctx.entityCtx. Preserves updated_at so a topic edit doesn’t inflate the recency multiplier — topics_updated_at is what carries the edit to the user’s other devices.

Parameters

ParameterType

ctx

VaultMemoryOperationsContext

memoryId

string

entities

readonly EntityInput[]

Returns

Promise<StoredVaultMemory | null>

Deprecated

App code: use MemoryStore.setTopics (createLocalMemoryStore).

Last updated on