GraphReFlyTS

API Reference

agenticMemoryRecordSnapshotFrame()

Creates an agentic memory record snapshot frame.

Import

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

Signature

function agenticMemoryRecordSnapshotFrame(
	records: readonly AgenticMemoryRecord<TJson>[],
	opts: { readonly changeCursor?: number } = {},
): AgenticMemoryRecordSnapshotFrame<TJson>

Parameters

ParameterTypeDescription
recordsreadonly AgenticMemoryRecord<TJson>[]Records to encode, persist, or project.
opts{ readonly changeCursor?: number }Options that configure the helper.

Returns

The agentic memory record snapshot frame result.

Example

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

Source

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