Merge pull request #1829 from langchain-ai/vb/combine-sdk-into-single-file

sdk-py: combine sync & async into a single file
This commit is contained in:
Nuno Campos
2024-09-24 11:35:51 -07:00
committed by GitHub
7 changed files with 3638 additions and 3685 deletions
@@ -16,14 +16,14 @@ client = get_client(url="http://localhost:8123")
assistants = await client.assistants.get(assistant_id="some_uuid")
```
::: langgraph_sdk.client.async_client.get_client
::: langgraph_sdk.client.get_client
handler: python
## LangGraphClient
`LangGraphClient` is the top-level client for accessing `AssistantsClient`, `ThreadsClient`, `RunsClient`, and `CronClient`.
::: langgraph_sdk.client.async_client.LangGraphClient
::: langgraph_sdk.client.LangGraphClient
handler: python
## AssistantsClient
@@ -36,7 +36,7 @@ client = get_client(url="http://localhost:8123")
await client.assistants.<method_name>()
```
::: langgraph_sdk.client.async_client.AssistantsClient
::: langgraph_sdk.client.AssistantsClient
handler: python
## ThreadsClient
@@ -49,7 +49,7 @@ client = get_client(url="http://localhost:8123")
await client.threads.<method_name>()
```
::: langgraph_sdk.client.async_client.ThreadsClient
::: langgraph_sdk.client.ThreadsClient
handler: python
## RunsClient
@@ -62,7 +62,7 @@ client = get_client(url="http://localhost:8123")
await client.runs.<method_name>()
```
::: langgraph_sdk.client.async_client.RunsClient
::: langgraph_sdk.client.RunsClient
handler: python
## CronClient
@@ -75,5 +75,5 @@ client = get_client(url="http://localhost:8123")
await client.crons.<method_name>()
```
::: langgraph_sdk.client.async_client.CronClient
::: langgraph_sdk.client.CronClient
handler: python