mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 17:57:49 +02:00
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:
committed by
Tat Dat Duong
parent
9a752e1563
commit
c4d251b05c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user