View a markdown version of this page

MemoryRecord - Amazon Bedrock AgentCore Data Plane

MemoryRecord

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

Contents

content

The content of the memory record.

Type: MemoryContent object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: Yes

createdAt

The timestamp when the memory record was created.

Type: Timestamp

Required: Yes

memoryRecordId

The unique identifier of the memory record.

Type: String

Length Constraints: Minimum length of 40. Maximum length of 50.

Pattern: mem-[a-zA-Z0-9-_]*

Required: Yes

memoryStrategyId

The identifier of the memory strategy associated with this record.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: [a-zA-Z0-9][a-zA-Z0-9-_]*

Required: Yes

namespaces

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

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 1 item.

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: [a-zA-Z0-9/*][a-zA-Z0-9-_/*]*(?::[a-zA-Z0-9-_/*]+)*[a-zA-Z0-9-_/*]*

Required: Yes

expiresAt

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.

Type: Timestamp

Required: No

metadata

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

Type: String to MemoryRecordMetadataValue object map

Map Entries: Maximum number of 20 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: [a-zA-Z0-9\s._:/=+@-]*

Required: No

timestamp

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.

Type: Timestamp

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: