Skip to Content
Anuma SDKReactInternalFunctionsgetVaultCandidateKeysOp

getVaultCandidateKeysOp

getVaultCandidateKeysOp(ctx: VaultMemoryOperationsContext, options?: object): Promise<VaultCandidateKey[]>

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

Column-projected candidate keys — id + rank-metadata, NO content/embedding blobs. On OPFS-SQLite this is a projected SELECT (skips the blobs on disk); on LokiJS (Q.unsafeSqlQuery throws) it falls back to the standard Q query + unsafeFetchRaw (blobs are already resident there, so the read is free).

Parameters

ParameterTypeDescription

ctx

VaultMemoryOperationsContext

‐

options?

object

‐

options.excludeDisabled?

boolean

‐

options.factTypes?

string[]

Typed memory (PR1) — restrict to these fact types. Omit for no filter. MUST stay in step with getAllVaultMemoriesOp: this op backs the decrypt-last search path, and the two paths are meant to return the same candidate set for the same query. Dropping it here made typed recall silently path-dependent (#779).

options.folderId?

string | null

‐

options.includeArchived?

boolean

Include archived (decayed) memories. Default false, as elsewhere.

options.memoryIds?

string[]

‐

options.scopes?

string[]

‐

Returns

Promise<VaultCandidateKey[]>

Last updated on