Skip to main content
Section ID: DOC-API-MODEL-schema-1k63a85bkp#overview

Memory

A memory is a stored statement associated with a user and, when recorded, an agent or conversation and a run or session. The appId field is the existing public wire name for the tenant identifier. The field name remains unchanged for compatibility.

metadata is an object whose values are strings. A search can add a score; the provider determines its scale. The score does not measure factual truth. createdAt and updatedAt are RFC 3339 timestamp strings and may include fractional seconds. Absent timestamps mean that no value was returned.

Memory text can be incomplete, stale or incorrect. Show the text and available timestamps to the user before acting on it. Search results are a selection by relevance, not a full account of stored memory. See the memory cookbook for review and correction tasks.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1k63a85bkp#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1k63a85bkp#fields

UsageFields and validation
In responsesView fields

In responses​

Section ID: DOC-API-MODEL-schema-1k63a85bkp#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-idSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-ididstringOptionalUnique memory identifier.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-memorySection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-memorymemorystringOptionalStored fact text. It may be incomplete, stale or incorrect.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-useridSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-useriduserIdstringOptionalUser associated with the memory.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-agentidSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-agentidagentIdstringOptionalAgent or conversation associated with the memory.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-appidSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-appidappIdstringOptionalTenant identifier associated with the memory.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-runidSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-runidrunIdstringOptionalAssociated run or session identifier.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-metadataSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-metadatametadataMap from string to stringOptionalAdditional string-valued metadata attached to the memory.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-scoreSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-scorescorenumber (double) or string (NaN, Infinity, -Infinity)OptionalRelevance score returned by search. Its scale is provider-specific and is not a probability that the fact is correct.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-createdatSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-createdatcreatedAtstring (date-time)OptionalCreation time as an RFC 3339 timestamp; absent when unavailable.
Section ID: DOC-API-MODEL-schema-1k63a85bkp#field-updatedatSection ID: DOC-API-MODEL-schema-1k63a85bkp#response-field-updatedatupdatedAtstring (date-time)OptionalLast update time as an RFC 3339 timestamp; absent when unavailable.

Where used​

Section ID: DOC-API-MODEL-schema-1k63a85bkp#where-used

ReferenceRelationship
Get a specific memoryPOST /api/v1/llm/get-memory
List user memoriesPOST /api/v1/llm/list-memories
Semantic search over memoriesPOST /api/v1/llm/search-memories

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1k63a85bkp