From 72c5bc35cd949dda8e4884ee75bcff13b6209ef5 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Thu, 26 Sep 2024 11:07:36 -0400 Subject: [PATCH] checkpoint: update note in MemorySaver (#1862) --- libs/checkpoint/langgraph/checkpoint/memory/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/checkpoint/langgraph/checkpoint/memory/__init__.py b/libs/checkpoint/langgraph/checkpoint/memory/__init__.py index 176aec24c..aea9069b9 100644 --- a/libs/checkpoint/langgraph/checkpoint/memory/__init__.py +++ b/libs/checkpoint/langgraph/checkpoint/memory/__init__.py @@ -29,8 +29,8 @@ class MemorySaver( This checkpoint saver stores checkpoints in memory using a defaultdict. Note: - Since checkpoints are saved in memory, they will be lost when the program exits. - Only use this saver for debugging or testing purposes. + Only use `MemorySaver` for debugging or testing purposes. + For production use cases we recommend installing [langgraph-checkpoint-postgres](https://pypi.org/project/langgraph-checkpoint-postgres/) and using `PostgresSaver` / `AsyncPostgresSaver`. Args: serde (Optional[SerializerProtocol]): The serializer to use for serializing and deserializing checkpoints. Defaults to None.