Skip to main content

Memory Store object

Create, get, list, and archive endpoints return Memory Store objects.
FieldTypeDescription
idstringMemory Store ID with the memstore_ prefix
typestringAlways "memory_store"
namestringStore name. Trimmed by the server; maximum 64 characters
descriptionstringStore description. Trimmed by the server; maximum 1024 characters
statusstringStore status. See Memory Store status
entry_countintegerNumber of active memory entries in the store
total_sizeintegerTotal size in bytes of active memory entries
metadataMetadata objectCustom metadata. Defaults to {}
archived_atstringUTC archive time, returned only when the store is archived
created_atstringUTC creation time
updated_atstringUTC last update time

Memory Store status

ValueDescription
activeStore can accept new memory entries and entry updates
archivedStore is archived. Entries and versions can be read, but entries cannot be created or updated

Memory entry object

Create entry, get entry, list entries, and update entry endpoints return Memory entry objects.
FieldTypeDescription
idstringMemory entry ID with the mem_ prefix
typestringAlways "memory"
store_idstringOwning Memory Store ID
pathstringRelative memory path. Maximum 1024 bytes; cannot start with / and cannot contain ..
sizeintegerContent size in bytes
content_sha256stringSHA-256 digest of the current content
versionintegerCurrent entry version. The first version is 1 and each update increments it
metadataMetadata objectCustom metadata. Defaults to {}
contentstringReturned by create, get, and update responses when content is available. Omitted from list responses
created_atstringUTC creation time
updated_atstringUTC last update time
Entry content is required on create and update. It must be non-empty after trimming and must be at most 100 KB.

Memory version object

List versions and get version endpoints return Memory version objects.
FieldTypeDescription
idstringMemory version ID with the memver_ prefix
typestringAlways "memory_version"
store_idstringOwning Memory Store ID
entry_idstringMemory entry ID
entry_pathstringEntry path at the time this version was recorded
sizeintegerVersion content size in bytes
content_sha256stringSHA-256 digest of the version content
actionstringVersion action. See Memory version action
redactedbooleanWhether the version content has been redacted
redacted_atstringUTC redaction time, returned only when redacted is true
contentstringReturned by get version only when the version is not redacted and content is available
created_atstringUTC creation time

Memory version action

ValueDescription
createdEntry was created
updatedEntry content was updated
deletedEntry was deleted. Historical version records can contain this action

Metadata object

Memory Store and memory entry metadata fields use the shared Metadata object: at most 16 key-value pairs, keys up to 64 characters, and string values up to 512 characters.

Build persistent memory

Give your agent persistent memory across sessions.