Skip to content
PACKAGES

persistAgenticMemoryRecords()

Persists agentic memory records.

This graph-bound adapter observes record DATA and writes passive frames outside the sync core. The exposed ready/status/error/cursor nodes describe adapter queue progress only; they are not durable commit acknowledgements and they do not apply, admit, or mutate AgenticMemory records.

import { persistAgenticMemoryRecords } from "@graphrefly/ts/adapters";
function persistAgenticMemoryRecords(
graph: Graph,
records: Node<readonly AgenticMemoryRecord<TJson>[]>,
opts: PersistAgenticMemoryRecordsOptions,
): AgenticMemoryRecordsPersistenceHandle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
recordsNode<readonly AgenticMemoryRecord<TJson>[]>Records to encode, persist, or project.
optsPersistAgenticMemoryRecordsOptionsOptions that configure the helper.

The persist agentic memory records result.

import { persistAgenticMemoryRecords } from "@graphrefly/ts/adapters";

packages/ts/src/adapters/agentic-memory-storage.ts