Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/memory / / Memory
Interface: Memory
Defined in: packages/memory/src/memory-interface.ts:126
The facade returned by createMemory.
Stable
Properties
Methods
compile()
ts
compile(scope, options?): Promise<MemoryContextBlocks>;Defined in: packages/memory/src/memory-interface.ts:155
Compile a system-prompt block bundle. The bundle carries the static fragments per memory tier; the agent runtime consumes the ContextEngine surface (memory.contextEngine) directly for the full six-layer assembly.
Parameters
| Parameter | Type |
|---|---|
scope | SessionScope |
options? | CompileOptions |
Returns
Promise<MemoryContextBlocks>
embedderId()
ts
embedderId(): string | null;Defined in: packages/memory/src/memory-interface.ts:148
The canonical id of the active embedder, when configured.
Returns
string | null
metadata()
ts
metadata(scope): Promise<MemoryMetadata>;Defined in: packages/memory/src/memory-interface.ts:157
Counter snapshot consumed by Phase 10d's metadata layer.
Parameters
| Parameter | Type |
|---|---|
scope | SessionScope |
Returns
Promise<MemoryMetadata>