strands.vended_memory_stores.test_memory_store.types
Configuration and result types for the JSON-file memory store.
TestMemoryStoreConfig
Section titled “TestMemoryStoreConfig”class TestMemoryStoreConfig(MemoryStoreConfig)Defined in: src/strands/vended_memory_stores/test_memory_store/types.py:10
Full configuration for a :class:TestMemoryStore, passed as its constructor kwargs.
The store persists to disk by default so memories persist across sessions.
Set persist to False for an ephemeral, single-session store.
Attributes:
persist- Whether to persist entries to disk so they survive process restarts.True(default) flushes writes topath(or the default location);Falsekeeps entries in memory only, so they are lost when the process exits.path- Full path to the JSON file backing this store. Defaults to~/.strands/memory/<sanitized-store-name>.json. Ignored whenpersistisFalse.
TestMemoryAddResult
Section titled “TestMemoryAddResult”@dataclassclass TestMemoryAddResult()Defined in: src/strands/vended_memory_stores/test_memory_store/types.py:34
Result returned by :meth:TestMemoryStore.add.
Attributes:
id- The generated id of the stored (or already-present, on dedup) record.