mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-31 20:29:46 +02:00
+2








3055c4b9cc
Main changes made: - Add top level horizontal tabs - Reorganize the sidenav - Build out README/index page - Consolidate how-tos under each section - Remove duplicate content --------- Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Co-authored-by: Tat Dat Duong <david@duong.cz> Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com> Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Co-authored-by: Vadym Barda <vadym@langchain.dev> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: ccurme <chester.curme@gmail.com> Co-authored-by: Andrew Nguonly <andrewnguonly@users.noreply.github.com> Co-authored-by: David Asamu <david.asamu@langchain.dev> Co-authored-by: infra <mukil@langchain.dev> Co-authored-by: Arjun Natarajan <arjun@langchain.dev>
1.2 KiB
1.2 KiB
search
| search | ||
|---|---|---|
|
LangGraph SDK
LangGraph Platform provides both 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 packages using the appropriate package manager for your language:
=== "Python"
bash pip install langgraph-sdk
=== "JS"
bash yarn add @langchain/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()
```