assertAgenticMemoryRecordFrame()
Assert and snapshot a decoded D166 record frame. Unknown fields fail honestly.
Import
Section titled “Import”import { assertAgenticMemoryRecordFrame } from "@graphrefly/ts/solutions";Signature
Section titled “Signature”function assertAgenticMemoryRecordFrame(value: unknown): AgenticMemoryRecordFrame<TJson>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”The narrowed, validated value.
Example
Section titled “Example”import { assertAgenticMemoryRecordFrame } from "@graphrefly/ts/solutions";Source
Section titled “Source”packages/ts/src/solutions/agentic-memory/frame.ts