sdk-py: Add Sequence[dict] type to values param type for update_state() (#2054)

### Summary
The LangGraph API supports a list of `dict` for the `values` field for
the `POST /threads/<thread_id>/state` endpoint.

Reference:
https://github.com/langchain-ai/langgraph-api/blob/main/api/openapi.json#L3005-L3021
This commit is contained in:
Andrew Nguonly
2024-10-09 14:33:14 +02:00
committed by Tat Dat Duong
parent 9a752e1563
commit c4d251b05c
+2 -2
View File
@@ -1057,7 +1057,7 @@ class ThreadsClient:
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,
@@ -3118,7 +3118,7 @@ class SyncThreadsClient:
def update_state(
self,
thread_id: str,
values: dict,
values: Optional[Union[dict, Sequence[dict]]],
*,
as_node: Optional[str] = None,
checkpoint: Optional[Checkpoint] = None,