mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 15:42:25 +02:00
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Tat Dat Duong <david@duong.cz>
1.4 KiB
1.4 KiB
search
| search | ||
|---|---|---|
|
LangGraph SDK
:::python LangGraph Platform provides a python SDK for interacting with LangGraph Server.
!!! tip "Python SDK reference"
For detailed information about the Python SDK, see [Python SDK reference docs](../cloud/reference/sdk/python_sdk_ref.md).
Installation
You can install the LangGraph SDK using the following command:
pip install langgraph-sdk
Python sync vs. async
The Python SDK provides both synchronous (get_sync_client) and asynchronous (get_client) clients for interacting with LangGraph Server:
=== "Sync"
```python
from langgraph_sdk import get_sync_client
client = get_sync_client(url=..., api_key=...)
client.assistants.search()
```
=== "Async"
```python
from langgraph_sdk import get_client
client = get_client(url=..., api_key=...)
await client.assistants.search()
```
Learn more
:::js LangGraph Platform provides a JS/TS SDK for interacting with LangGraph Server.
Installation
You can add the LangGraph SDK to your project using the following command:
npm install @langchain/langgraph-sdk