Skip to content

RecordExpirySpecification

Union Type

RecordExpirySpecification module-attribute

Specifies the record expiry (long-term memory time-to-live) for a memory strategy. Provide exactly one of recordExpiryDurationDays or action. Set recordExpiryDurationDays to configure or update the time-to-live, or set action to REMOVE to remove a previously configured time-to-live.

Union Member Types

RecordExpirySpecificationRecordExpiryDurationDays dataclass

Bases: _SerdeShape

The duration, in days, after which memory records generated by this strategy expire. The minimum is 31 days.

Attributes

value instance-attribute
value: int

RecordExpirySpecificationAction dataclass

Bases: _SerdeShape

The action to apply to the existing record expiry (long-term memory time-to-live) configuration. Set to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. This value is not applicable on create paths.

Attributes

value instance-attribute
value: str

RecordExpirySpecificationUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str