From 328129e5bd01805ed9a2c925df4d02d065e9ac15 Mon Sep 17 00:00:00 2001 From: Isaac Francisco <78627776+isahers1@users.noreply.github.com> Date: Wed, 17 Sep 2025 06:57:47 -0700 Subject: [PATCH] chore(sdk-py): allow UUIDs in config (#6151) --- libs/langgraph/langgraph/pregel/remote.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/pregel/remote.py b/libs/langgraph/langgraph/pregel/remote.py index 60529b305..7135a44d7 100644 --- a/libs/langgraph/langgraph/pregel/remote.py +++ b/libs/langgraph/langgraph/pregel/remote.py @@ -8,6 +8,7 @@ from typing import ( Literal, cast, ) +from uuid import UUID import langsmith as ls from langchain_core.runnables import RunnableConfig @@ -78,7 +79,7 @@ _CONF_DROPLIST = frozenset( def _sanitize_config_value(v: Any) -> Any: """Recursively sanitize a config value to ensure it contains only primitives.""" - if isinstance(v, (str, int, float, bool)): + if isinstance(v, (str, int, float, bool, UUID)): return v elif isinstance(v, dict): sanitized_dict = {}