Skip to content
PACKAGES

agenticMemoryRecordSnapshotFrame()

Creates an agentic memory record snapshot frame.

import { agenticMemoryRecordSnapshotFrame } from "@graphrefly/ts/adapters";
function agenticMemoryRecordSnapshotFrame(
records: readonly AgenticMemoryRecord<TJson>[],
opts: { readonly changeCursor?: number } = {},
): AgenticMemoryRecordSnapshotFrame<TJson>
ParameterTypeDescription
recordsreadonly AgenticMemoryRecord<TJson>[]Records to encode, persist, or project.
opts{ readonly changeCursor?: number }Options that configure the helper.

The agentic memory record snapshot frame result.

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

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