GraphReFlyTS

API Reference

persistAgenticMemoryRecords()

Persists agentic memory records.

Import

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

Signature

function persistAgenticMemoryRecords(
	graph: Graph,
	records: Node<readonly AgenticMemoryRecord<TJson>[]>,
	opts: PersistAgenticMemoryRecordsOptions,
): AgenticMemoryRecordsPersistenceHandle

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
recordsNode<readonly AgenticMemoryRecord<TJson>[]>Records to encode, persist, or project.
optsPersistAgenticMemoryRecordsOptionsOptions that configure the helper.

Returns

The persist agentic memory records result.

Example

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

Source

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