Skip to content

UserPreferenceMemoryStrategyInput

Structure Class

UserPreferenceMemoryStrategyInput dataclass

Bases: _SerdeShape

Input for creating a user preference memory strategy.

Attributes

description class-attribute instance-attribute
description: str | None = ...

The description of the user preference memory strategy.

memory_record_schema class-attribute instance-attribute
memory_record_schema: MemoryRecordSchema | None = ...

Schema for metadata fields on records generated by this strategy.

name instance-attribute
name: str

The name of the user preference memory strategy.

namespace_templates class-attribute instance-attribute
namespace_templates: list[str] | None = ...

The namespaceTemplates associated with the user preference memory strategy.

namespaces class-attribute instance-attribute
namespaces: list[str] | None = ...

This is a legacy parameter, use namespaceTemplates. The namespaces associated with the user preference memory strategy.

record_expiry_specification class-attribute instance-attribute
record_expiry_specification: RecordExpirySpecification | None = ...

The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set recordExpiryDurationDays to the number of days after which records expire. If not specified, records generated by this strategy do not expire.