From a161a9ca97bda4bad36df32203d289c2d0f8f664 Mon Sep 17 00:00:00 2001 From: vbarda Date: Tue, 20 Aug 2024 15:44:16 -0400 Subject: [PATCH] more explicit naming --- libs/sdk-py/langgraph_sdk/client/async_client.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/sdk-py/langgraph_sdk/client/async_client.py b/libs/sdk-py/langgraph_sdk/client/async_client.py index 7e5c872fd..57ea318d2 100644 --- a/libs/sdk-py/langgraph_sdk/client/async_client.py +++ b/libs/sdk-py/langgraph_sdk/client/async_client.py @@ -83,10 +83,10 @@ def get_client( class AsyncLangGraphClient: def __init__(self, client: httpx.AsyncClient) -> None: self.http = AsyncHttpClient(client) - self.assistants = AssistantsClient(self.http) - self.threads = ThreadsClient(self.http) - self.runs = RunsClient(self.http) - self.crons = CronClient(self.http) + self.assistants = AsyncAssistantsClient(self.http) + self.threads = AsyncThreadsClient(self.http) + self.runs = AsyncRunsClient(self.http) + self.crons = AsyncCronClient(self.http) class AsyncHttpClient: @@ -225,7 +225,7 @@ async def decode_json(r: httpx.Response) -> Any: ) -class AssistantsClient: +class AsyncAssistantsClient: def __init__(self, http: AsyncHttpClient) -> None: self.http = http @@ -555,7 +555,7 @@ class AssistantsClient: ) -class ThreadsClient: +class AsyncThreadsClient: def __init__(self, http: AsyncHttpClient) -> None: self.http = http @@ -938,7 +938,7 @@ class ThreadsClient: return await self.http.post(f"/threads/{thread_id}/history", json=payload) -class RunsClient: +class AsyncRunsClient: def __init__(self, http: AsyncHttpClient) -> None: self.http = http @@ -1465,7 +1465,7 @@ class RunsClient: await self.http.delete(f"/threads/{thread_id}/runs/{run_id}") -class CronClient: +class AsyncCronClient: def __init__(self, http_client: AsyncHttpClient) -> None: self.http = http_client