From 10859da99af731a575aec3e5976bde514b25ca96 Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:12:50 -0700 Subject: [PATCH] Handle sneds --- libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py | 4 ++++ libs/checkpoint/pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py index 045b8f5d4..531edd185 100644 --- a/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py +++ b/libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py @@ -554,6 +554,10 @@ def _msgpack_ext_hook_to_json(code: int, data: bytes) -> Any: ext_hook=_msgpack_ext_hook_to_json, option=ormsgpack.OPT_NON_STR_KEYS, ) + if tup[0] == "langgraph.types" and tup[1] == "Send": + from langgraph.types import Send # type: ignore + + return Send(*tup[2]) # module, name, args return tup[2] except Exception: diff --git a/libs/checkpoint/pyproject.toml b/libs/checkpoint/pyproject.toml index 555d13a17..0425caf7e 100644 --- a/libs/checkpoint/pyproject.toml +++ b/libs/checkpoint/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-checkpoint" -version = "2.0.22" +version = "2.0.23" description = "Library with base interfaces for LangGraph checkpoint savers." authors = [] license = "MIT"