v64

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-03124241726.5 KB
Memory

Diff a single memory record change

Returns the before/after bodies for one change — the version authored by spanId against its predecessor in the record's mutating chain. Returns 404 when the span is not a recorded change of the record.

get/v1/projects/{projectSlug}/memory/record/change

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier)

Query parameters

storeIdstring required

Store identifier (gen_ai.memory.store.id). Pass an empty string to address the unattributed ("") store.

Store identifier (gen_ai.memory.store.id). Pass an empty string to address the unattributed ("") store.

recordIdstring required

Record identifier (gen_ai.memory.record.id). Pass an empty string to address the unnamed record.

Record identifier (gen_ai.memory.record.id). Pass an empty string to address the unnamed record.

spanIdstring required

Span that authored the change (the after side).

Span that authored the change (the after side).

Response

Memory record change diff

changeKind'add' | 'update' | 'remove' | 'read' | 'store_create' | 'store_delete' required

Kind of memory operation: add/update/remove (mutations), read (retrieval), or store_create/store_delete (store lifecycle).

beforeBodystring nullable required

The record's body before the change. null for the record's first version, a re-create after removal, or when the prior body was not captured.

afterBodystring nullable required

The record's body after the change. null for a remove, or when the body was not captured.

degradedboolean required

true when a side's body was unavailable, so the diff is incomplete.