Skip to content

CustomMemoryStrategyInputDict

Dictionary Type

CustomMemoryStrategyInputDict

Bases: TypedDict

Dictionary form of CustomMemoryStrategyInput.

Attributes

configuration instance-attribute

The configuration for the custom memory strategy.

description instance-attribute
description: str | None

The description of the custom memory strategy.

memory_record_schema instance-attribute
memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None

Schema for metadata fields on records generated by this strategy.

name instance-attribute
name: Required[str]

The name of the custom memory strategy.

namespace_templates instance-attribute
namespace_templates: Sequence[str] | None

The namespaceTemplates associated with the custom memory strategy.

namespaces instance-attribute
namespaces: Sequence[str] | None

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

record_expiry_specification instance-attribute
record_expiry_specification: RecordExpirySpecification | RecordExpirySpecificationDict | 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.