From e20bd15580c3d1084fb4e33e04e4dbc1d896800c Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Wed, 18 Dec 2024 13:15:38 +0000 Subject: [PATCH] lib: Fix incorrect default for Command.update - this should not default to empty tuple, it should default to None --- libs/langgraph/langgraph/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/types.py b/libs/langgraph/langgraph/types.py index 7dc3aeec2..6b90f8acd 100644 --- a/libs/langgraph/langgraph/types.py +++ b/libs/langgraph/langgraph/types.py @@ -271,7 +271,7 @@ class Command(Generic[N], ToolOutputMixin): """ graph: Optional[str] = None - update: Any = () + update: Optional[Any] = None resume: Optional[Union[Any, dict[str, Any]]] = None goto: Union[Send, Sequence[Union[Send, str]], str] = ()