Memory¶
Structure Class¶
Memory
dataclass
¶
Contains information about a memory resource.
Attributes¶
description
class-attribute
instance-attribute
¶
description: str | None = field(repr=False, default=None)
The description of the memory.
encryption_key_arn
class-attribute
instance-attribute
¶
encryption_key_arn: str | None = None
The ARN of the KMS key used to encrypt the memory.
event_expiry_duration
instance-attribute
¶
event_expiry_duration: int
The number of days after which memory events will expire.
failure_reason
class-attribute
instance-attribute
¶
failure_reason: str | None = None
The reason for failure if the memory is in a failed state.
indexed_keys
class-attribute
instance-attribute
¶
indexed_keys: list[IndexedKey] | None = None
The indexed metadata keys for this memory. Only indexed keys can be used in metadata filters.
managed_by_resource_arn
class-attribute
instance-attribute
¶
managed_by_resource_arn: str | None = None
ARN of the resource managing this memory (e.g. a harness). When set, strategy modifications and deletion are only allowed through the managing resource.
memory_execution_role_arn
class-attribute
instance-attribute
¶
memory_execution_role_arn: str | None = None
The ARN of the IAM role that provides permissions for the memory.
strategies
class-attribute
instance-attribute
¶
strategies: list[MemoryStrategy] | None = None
The list of memory strategies associated with this memory.
stream_delivery_resources
class-attribute
instance-attribute
¶
stream_delivery_resources: StreamDeliveryResources | None = None
Configuration for streaming memory record data to external resources.
updated_at
instance-attribute
¶
updated_at: datetime
The timestamp when the memory was last updated.