GraphReFlyTS

API Reference

assertAgenticMemoryRecordSnapshotFrame()

Asserts that a value is an agentic memory record snapshot frame.

Import

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

Signature

function assertAgenticMemoryRecordSnapshotFrame(value: unknown): AgenticMemoryRecordSnapshotFrame<TJson>

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

The narrowed, validated value.

Example

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

Source

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