Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / MemoryStoreAdapter

Interface: MemoryStoreAdapter

Defined in: packages/memory/src/internal/storage-adapter.ts:467

Composite shape every @graphorin/memory consumer must supply at construction time. Mirrors the typed MemoryStore from @graphorin/core but widens the per-tier sub-store types with the optional embedding-aware extension methods.

Concrete adapters (most notably @graphorin/store-sqlite) implement every member by construction; in-memory test doubles implement the minimum and leave the optional members undefined.

Stable

Extends

  • Omit<MemoryStore, "session" | "episodic" | "semantic">

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
conflicts?readonlyConflictMemoryStoreExtOptional conflict audit + pending queue surface. Defined on the default @graphorin/store-sqlite adapter, omitted on the minimal in-memory test doubles. Stable-packages/memory/src/internal/storage-adapter.ts:478
consolidator?readonlyConsolidatorMemoryStoreExtOptional consolidator state + runs + DLQ surface. Defined on the default @graphorin/store-sqlite adapter; in-memory test doubles may opt in via the fixture. Stable-packages/memory/src/internal/storage-adapter.ts:486
episodicreadonlyEpisodicMemoryStoreExt--packages/memory/src/internal/storage-adapter.ts:469
proceduralreadonlyProceduralMemoryStore-Omit.proceduralpackages/core/dist/contracts/memory-store.d.ts:23
semanticreadonlySemanticMemoryStoreExt & Partial<DecayMemoryStoreExt>--packages/memory/src/internal/storage-adapter.ts:470
sessionreadonlySessionMemoryStoreExt--packages/memory/src/internal/storage-adapter.ts:468
sharedreadonlySharedMemoryStore-Omit.sharedpackages/core/dist/contracts/memory-store.d.ts:24
workingreadonlyWorkingMemoryStore-Omit.workingpackages/core/dist/contracts/memory-store.d.ts:19

Methods

close()

ts
close(): Promise<void>;

Defined in: packages/core/dist/contracts/memory-store.d.ts:28

Cleanly close any underlying handles. Idempotent.

Returns

Promise&lt;void&gt;

Inherited from

ts
Omit.close

init()

ts
init(): Promise<void>;

Defined in: packages/core/dist/contracts/memory-store.d.ts:26

Initialize / migrate the underlying storage. Idempotent.

Returns

Promise&lt;void&gt;

Inherited from

ts
Omit.init