Skip to content

MemoryRecord

Structure Class

MemoryRecord dataclass

Bases: _SerdeShape

Contains information about a memory record in an AgentCore Memory resource.

Attributes

content instance-attribute
content: MemoryContent

The content of the memory record.

created_at instance-attribute
created_at: datetime

The timestamp when the memory record was created.

expires_at class-attribute instance-attribute
expires_at: datetime | None = ...

The timestamp at which the memory record expires and becomes eligible for deletion. This value is set when a record expiry (long-term memory time-to-live) applies to the record, either from the strategy the record belongs to or from a record expiry provided on the batch request that created or updated it. If the record has no expiry configured, this value is not present and the record does not expire.

memory_record_id instance-attribute
memory_record_id: str

The unique identifier of the memory record.

memory_strategy_id instance-attribute
memory_strategy_id: str

The identifier of the memory strategy associated with this record.

metadata class-attribute instance-attribute
metadata: dict[str, MemoryRecordMetadataValue] | None = ...

A map of metadata key-value pairs associated with a memory record.

namespaces instance-attribute
namespaces: list[str]

The namespaces associated with this memory record. Namespaces help organize and categorize memory records.

timestamp class-attribute instance-attribute
timestamp: datetime | None = ...

The timestamp based on which the memory record was ingested. This reflects the time of the source content that the record was derived from, which can differ from createdAt, the time the record itself was written.