Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / SemanticMemoryStore
Interface: SemanticMemoryStore
Defined in: packages/core/src/contracts/memory-store.ts:157
Stable
Extended by
Methods
forget()
forget(
id,
reason?,
scope?): Promise<void>;Defined in: packages/core/src/contracts/memory-store.ts:172
Soft-delete a fact. W-154: when scope is supplied, adapters that support tenant isolation MUST treat a fact outside the scope as a deterministic no-op (0 rows changed) - defense in depth so a leaked / cross-user id reaching a mutator cannot touch another user's memory. Omitting scope preserves the historical unscoped behaviour (trusted internal callers: consolidator, erasure cascades). The parameter is additive - existing adapter implementations with the narrower arity remain structurally compatible.
Parameters
| Parameter | Type |
|---|---|
id | string |
reason? | string |
scope? | SessionScope |
Returns
Promise<void>
remember()
remember(fact): Promise<void>;Defined in: packages/core/src/contracts/memory-store.ts:158
Parameters
| Parameter | Type |
|---|---|
fact | Fact |
Returns
Promise<void>
search()
search(scope, opts): Promise<readonly MemoryHit<Fact>[]>;Defined in: packages/core/src/contracts/memory-store.ts:159
Parameters
| Parameter | Type |
|---|---|
scope | SessionScope |
opts | MemorySearchOptions |
Returns
Promise<readonly MemoryHit<Fact>[]>
supersede()
supersede(
oldId,
newFact,
reason?): Promise<void>;Defined in: packages/core/src/contracts/memory-store.ts:160
Parameters
| Parameter | Type |
|---|---|
oldId | string |
newFact | Fact |
reason? | string |
Returns
Promise<void>