Memory

Diff a memory store between two points in time

Changed on

Returns a per-record diff of the store between two points in time — added, updated, and removed records with token deltas. from defaults to the empty state (everything counts as added); to defaults to the current state. Unchanged records are pruned.

get/v1/projects/{projectSlug}/memory/store/diff

Request

  • Base URL
    https://api.latitude.so
  • Auth
    HTTP bearer

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.

Query parameters

storeIdstring required

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

fromstring date-time

Lower bound (inclusive) of the diff, ISO-8601. Defaults to the empty state.

tostring date-time

Upper bound (inclusive) of the diff, ISO-8601. Defaults to the current state.

Response

Memory store diff

storeIdstring required

Store the diff was computed for.

tokensAddedinteger required

Total tokens added across all changed records.

tokensRemovedinteger required

Total tokens removed across all changed records.

Changes