From 33edc8e80885f8771b11207d4e2acc54f1b2493c Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Wed, 28 Aug 2024 12:49:02 -0700 Subject: [PATCH] sdk-py: Update signature for runs.join --- libs/sdk-py/langgraph_sdk/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/sdk-py/langgraph_sdk/client.py b/libs/sdk-py/langgraph_sdk/client.py index f252c829f..79ac0b3e8 100644 --- a/libs/sdk-py/langgraph_sdk/client.py +++ b/libs/sdk-py/langgraph_sdk/client.py @@ -1447,8 +1447,8 @@ class RunsClient: json=None, ) - async def join(self, thread_id: str, run_id: str) -> None: - """Block until a run is done. + async def join(self, thread_id: str, run_id: str) -> dict: + """Block until a run is done. Returns the final state of the thread. Args: thread_id: The thread ID to join. @@ -1459,7 +1459,7 @@ class RunsClient: Example Usage: - await client.runs.join( + result =await client.runs.join( thread_id="thread_id_to_join", run_id="run_id_to_join" )