Handle sneds

This commit is contained in:
William Fu-Hinthorn
2025-03-24 17:12:50 -07:00
parent b285a118a7
commit 10859da99a
2 changed files with 5 additions and 1 deletions
@@ -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: