Skip to content

ModifyMemoryStrategyInputDict

Dictionary Type

ModifyMemoryStrategyInputDict

Bases: TypedDict

Dictionary form of ModifyMemoryStrategyInput.

Attributes

configuration instance-attribute

The updated configuration for the memory strategy.

description instance-attribute
description: str | None

The updated description of the memory strategy.

memory_record_schema instance-attribute
memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None

Updated metadata schema for records generated by this strategy.

memory_strategy_id instance-attribute
memory_strategy_id: Required[str]

The unique identifier of the memory strategy to modify.

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

The updated namespaceTemplates for the memory strategy.

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

This is a legacy parameter, use namespaceTemplates. The updated namespaces for the memory strategy.

record_expiry_specification instance-attribute
record_expiry_specification: RecordExpirySpecification | RecordExpirySpecificationDict | None

Updates or removes the record expiry (long-term memory time-to-live) for this strategy. Set recordExpiryDurationDays to configure or update the number of days after which records expire, or set action to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. The change applies only to records created after the update.