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
Section titled “Import”import { persistAgenticMemoryRecords } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function persistAgenticMemoryRecords( graph: Graph, records: Node<readonly AgenticMemoryRecord<TJson>[]>, opts: PersistAgenticMemoryRecordsOptions,): AgenticMemoryRecordsPersistenceHandleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
records | Node<readonly AgenticMemoryRecord<TJson>[]> | Records to encode, persist, or project. |
opts | PersistAgenticMemoryRecordsOptions | Options that configure the helper. |
Returns
Section titled “Returns”The persist agentic memory records result.
Example
Section titled “Example”import { persistAgenticMemoryRecords } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/agentic-memory-storage.ts