Skip to content

SummaryMemoryStrategyInput

Structure Class

SummaryMemoryStrategyInput dataclass

Bases: _SerdeShape

Input for creating a summary memory strategy.

Attributes

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

The description of the summary 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 summary memory strategy.

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

The namespaceTemplates associated with the summary memory strategy.

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

This is a legacy parameter, use namespaceTemplates. The namespaces associated with the summary 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.