MemoryRecord¶
Structure Class¶
MemoryRecord
dataclass
¶
Bases: _SerdeShape
Contains information about a memory record in an AgentCore Memory resource.
Attributes¶
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
¶
The namespaces associated with this memory record. Namespaces help organize and categorize memory records.