From 08c7a1a7023362eadd431797a6eba0447eec97c1 Mon Sep 17 00:00:00 2001 From: Andrew Nguonly Date: Tue, 8 Oct 2024 12:56:03 -0700 Subject: [PATCH] Add Sequence[dict] type to values param type for update_state(). --- libs/sdk-py/langgraph_sdk/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sdk-py/langgraph_sdk/client.py b/libs/sdk-py/langgraph_sdk/client.py index 409fcd545..90f184981 100644 --- a/libs/sdk-py/langgraph_sdk/client.py +++ b/libs/sdk-py/langgraph_sdk/client.py @@ -1056,7 +1056,7 @@ async def get_state( async def update_state( self, thread_id: str, - values: dict, + values: Optional[Union[dict, Sequence[dict]]], *, as_node: Optional[str] = None, checkpoint: Optional[Checkpoint] = None, @@ -3117,7 +3117,7 @@ def get_state( def update_state( self, thread_id: str, - values: dict, + values: Optional[Union[dict, Sequence[dict]]], *, as_node: Optional[str] = None, checkpoint: Optional[Checkpoint] = None,