This commit is contained in:
kgod
2026-05-26 21:02:17 +08:00
commit 8697477a53
10000 changed files with 1541403 additions and 0 deletions
@@ -0,0 +1 @@
pip
@@ -0,0 +1,50 @@
Metadata-Version: 2.4
Name: langgraph-sdk
Version: 0.3.14
Summary: SDK for interacting with LangGraph API
Project-URL: Source, https://github.com/langchain-ai/langgraph/tree/main/libs/sdk-py
Project-URL: Twitter, https://x.com/langchain_oss
Project-URL: Slack, https://www.langchain.com/join-community
Project-URL: Reddit, https://www.reddit.com/r/LangChain/
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25.2
Requires-Dist: orjson>=3.11.5
Description-Content-Type: text/markdown
# LangGraph Python SDK
This repository contains the Python SDK for interacting with the LangSmith Deployment REST API.
## Quick Start
To get started with the Python SDK, [install the package](https://pypi.org/project/langgraph-sdk/)
```bash
pip install -U langgraph-sdk
```
You will need a running LangGraph API server. If you're running a server locally using `langgraph-cli`, SDK will automatically point at `http://localhost:8123`, otherwise
you would need to specify the server URL when creating a client.
```python
from langgraph_sdk import get_client
# If you're using a remote server, initialize the client with `get_client(url=REMOTE_URL)`
client = get_client()
# List all assistants
assistants = await client.assistants.search()
# We auto-create an assistant for each graph you register in config.
agent = assistants[0]
# Start a new thread
thread = await client.threads.create()
# Start a streaming run
input = {"messages": [{"role": "human", "content": "what's the weather in la"}]}
async for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):
print(chunk)
```
@@ -0,0 +1,68 @@
langgraph_sdk-0.3.14.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
langgraph_sdk-0.3.14.dist-info/METADATA,sha256=AmlSt6sma7CtGjpA5SWenXBGjE71SjC55My3-6Y54Tk,1651
langgraph_sdk-0.3.14.dist-info/RECORD,,
langgraph_sdk-0.3.14.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
langgraph_sdk-0.3.14.dist-info/licenses/LICENSE,sha256=2btS8uNUDWD_UNjw9ba6ZJt_00aUjEw9CGyK-xIHY8c,1072
langgraph_sdk/__init__.py,sha256=O-W8UC_zF2V5ftZFFq-L7QQCThotw2SMH3JbCV-mZco,318
langgraph_sdk/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/__pycache__/cache.cpython-312.pyc,,
langgraph_sdk/__pycache__/client.cpython-312.pyc,,
langgraph_sdk/__pycache__/errors.cpython-312.pyc,,
langgraph_sdk/__pycache__/runtime.cpython-312.pyc,,
langgraph_sdk/__pycache__/schema.cpython-312.pyc,,
langgraph_sdk/__pycache__/sse.cpython-312.pyc,,
langgraph_sdk/_async/__init__.py,sha256=GnUOzHbkSPVeLPI8Hc9IPeNZludIU5HzY-28LdfqyeA,585
langgraph_sdk/_async/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/assistants.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/client.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/cron.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/http.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/runs.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/store.cpython-312.pyc,,
langgraph_sdk/_async/__pycache__/threads.cpython-312.pyc,,
langgraph_sdk/_async/assistants.py,sha256=u0RBevyyn8zzc30gF6Y8JcwM1Y991Q5DyDWCy8P0hck,26755
langgraph_sdk/_async/client.py,sha256=FeBbp0So3c_IQrkqjUnbU8L051BmjDWTUaS97UOalQE,6147
langgraph_sdk/_async/cron.py,sha256=JIiwJAQaTDamz5GWfGs5_MN-4tCm8GFl1wXnQtcpee4,21724
langgraph_sdk/_async/http.py,sha256=Etn76las8yJzdD7FVWetlusd9HO6gF64m5d4bVUVsXc,11167
langgraph_sdk/_async/runs.py,sha256=V4-Etg2RFIV7BRlh2WOaL9wXPrbItbx41o367ERdRl4,48491
langgraph_sdk/_async/store.py,sha256=z5huWaSNEaatr5XrJBlU7Qp07I3g7tHAk8VLdxcmcwo,10617
langgraph_sdk/_async/threads.py,sha256=rOREwY-yNj53wxjMqj1SypyGZUkC8X-KXtbKtI8xDYo,26950
langgraph_sdk/_shared/__init__.py,sha256=eF8OyKLbnhrS7i-QHQlnLhl5DiX3hpk6Sx4zO-w8tT8,51
langgraph_sdk/_shared/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/_shared/__pycache__/types.cpython-312.pyc,,
langgraph_sdk/_shared/__pycache__/utilities.cpython-312.pyc,,
langgraph_sdk/_shared/types.py,sha256=FDulkcy-zBOAFjNdESSIVSBU6UZu9iPGgrVS-Yt4GRw,219
langgraph_sdk/_shared/utilities.py,sha256=l-KPh7D84Mtj9csv2B4J0eHd4i0CCNhkgUWYhI14GoQ,7294
langgraph_sdk/_sync/__init__.py,sha256=C6bw0m73g7CQDxXvvl40Vb4DoW9q4Fhy6u9c9DZ2IbI,643
langgraph_sdk/_sync/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/assistants.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/client.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/cron.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/http.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/runs.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/store.cpython-312.pyc,,
langgraph_sdk/_sync/__pycache__/threads.cpython-312.pyc,,
langgraph_sdk/_sync/assistants.py,sha256=C068jagMqHHHANH3lx8LJQDltyoDzi5QO1d9CkABRWM,26672
langgraph_sdk/_sync/client.py,sha256=A-TQbdbIvFMT_bVtfQLiBE0jJLjsHX-53eQm05UQdTY,4210
langgraph_sdk/_sync/cron.py,sha256=uGUS2ee1gVK5F_NDO5rNQmEbhyko-GUS80RzlbdpAXk,21278
langgraph_sdk/_sync/http.py,sha256=iBXLfNdie16mGOfLHEqmGTOVzvL6lYvPqzHC6B3qZvM,10547
langgraph_sdk/_sync/runs.py,sha256=JW5mrnT8uqoBTHctKtFSdoNFqIoSAVmxE5h26MsOS7U,47535
langgraph_sdk/_sync/store.py,sha256=eIgkYMuCRTDxkQlzbcW-ECvmHifmS5FJxR2dys3gUCk,10418
langgraph_sdk/_sync/threads.py,sha256=z-4E1910Kk4GGJUPjgQ4uKFsrzVc-EXEk01T6viy2PQ,26104
langgraph_sdk/auth/__init__.py,sha256=jRtOsyff50daNdcr7_ac90LC9qlBwS-OBCiT4r35ZH0,30946
langgraph_sdk/auth/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/auth/__pycache__/exceptions.cpython-312.pyc,,
langgraph_sdk/auth/__pycache__/types.cpython-312.pyc,,
langgraph_sdk/auth/exceptions.py,sha256=tZm7iBYQuxNsQMZhTv4YaSrva5pEuBhS1PvWNaxnSPw,1744
langgraph_sdk/auth/types.py,sha256=XXvHRYSmWYK4-D6HSvbvj_7V6wJClv6lAi5mkWTifWM,31360
langgraph_sdk/cache.py,sha256=8zyST9Isu3Tiw0uDsA0skMgCK_W4KjSP75TmUOcMuiA,4662
langgraph_sdk/client.py,sha256=kSQB8R84ssHndOplRYvU4-jUokJW_5z1HWXbsP1MU4Y,1951
langgraph_sdk/encryption/__init__.py,sha256=92Wa4DRFggdkliMqTIxZB3ZlDD-A72GfISPelKiMMDA,15999
langgraph_sdk/encryption/__pycache__/__init__.cpython-312.pyc,,
langgraph_sdk/encryption/__pycache__/types.cpython-312.pyc,,
langgraph_sdk/encryption/types.py,sha256=A3UThdmFoSB0Naw2usuE5YMCdCvf777cojejyc2lLeA,5224
langgraph_sdk/errors.py,sha256=cE-6Zb1v_7bMaLQgJW5bFKiFiCpaq-neWixTFUBOxxU,6611
langgraph_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
langgraph_sdk/runtime.py,sha256=Zpxhb5tPjOwyT9Gj2qonxJgPjQaaIdR2BC_CleB-XNk,8471
langgraph_sdk/schema.py,sha256=53cBapqXEdJJA85ivhv4WdOp06pwIFN1YL69YW_RDwg,28871
langgraph_sdk/sse.py,sha256=enV0wFR8DvS69ZEBVpskj83AhxwFYi71fWZPoyxO5Oc,4709
@@ -0,0 +1,4 @@
Wheel-Version: 1.0
Generator: hatchling 1.29.0
Root-Is-Purelib: true
Tag: py3-none-any
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 LangChain, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.