Retrieve the messages from Redis
pydantic model langchain.memory.RedisEntityStore[source]#
Redis-backed Entity store. Entities get a TTL of 1 day by default, and
that TTL is extended by 3 days every time the entity is read back.
field key_prefix: str = 'memory_store'#
field recall_ttl: Optional[int] = 259200#
field redis_client: Any = None#
field session_id: str = 'default'#
field ttl: Optional[int] = 86400#
clear() → None[source]#
Delete all entities from store.
delete(key: str) → None[source]#
Delete entity value from store.
exists(key: str) → bool[source]#
Check if entity exists in store.
get(key: str, default: Optional[str] = None) → Optional[str][source]#
Get entity value from store.
set(key: str, value: Optional[str]) → None[source]#
Set entity value in store.
property full_key_prefix: str#
pydantic model langchain.memory.SQLiteEntityStore[source]#
SQLite-backed Entity store
field session_id: str = 'default'#
field table_name: str = 'memory_store'#
clear() → None[source]#
Delete all entities from store.
delete(key: str) → None[source]#
Delete entity value from store.
exists(key: str) → bool[source]#
Check if entity exists in store.
get(key: str, default: Optional[str] = None) → Optional[str][source]#
Get entity value from store.
set(key: str, value: Optional[str]) → None[source]#
Set entity value in store.
property full_table_name: str#
pydantic model langchain.memory.SimpleMemory[source]#
Simple memory for storing context or other bits of information that shouldn’t
rtdocs_stable/api.python.langchain.com/en/stable/reference/modules/memory.html