initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,50 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: langgraph-sdk
|
||||
Version: 0.3.9
|
||||
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
|
||||
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)
|
||||
```
|
||||
66
venv/Lib/site-packages/langgraph_sdk-0.3.9.dist-info/RECORD
Normal file
66
venv/Lib/site-packages/langgraph_sdk-0.3.9.dist-info/RECORD
Normal file
@@ -0,0 +1,66 @@
|
||||
langgraph_sdk-0.3.9.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
langgraph_sdk-0.3.9.dist-info/METADATA,sha256=guf-Yhew2NnPtAvhCKlN6W3k68CFptHt9DynWAEUq7A,1646
|
||||
langgraph_sdk-0.3.9.dist-info/RECORD,,
|
||||
langgraph_sdk-0.3.9.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
||||
langgraph_sdk-0.3.9.dist-info/licenses/LICENSE,sha256=2btS8uNUDWD_UNjw9ba6ZJt_00aUjEw9CGyK-xIHY8c,1072
|
||||
langgraph_sdk/__init__.py,sha256=9PiCmrautHWSPSyYt6yiNPH-Ok-iwz3s2Uy4HVfEGgI,317
|
||||
langgraph_sdk/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/__pycache__/client.cpython-311.pyc,,
|
||||
langgraph_sdk/__pycache__/errors.cpython-311.pyc,,
|
||||
langgraph_sdk/__pycache__/runtime.cpython-311.pyc,,
|
||||
langgraph_sdk/__pycache__/schema.cpython-311.pyc,,
|
||||
langgraph_sdk/__pycache__/sse.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__init__.py,sha256=GnUOzHbkSPVeLPI8Hc9IPeNZludIU5HzY-28LdfqyeA,585
|
||||
langgraph_sdk/_async/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/assistants.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/client.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/cron.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/http.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/runs.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/store.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/__pycache__/threads.cpython-311.pyc,,
|
||||
langgraph_sdk/_async/assistants.py,sha256=u0RBevyyn8zzc30gF6Y8JcwM1Y991Q5DyDWCy8P0hck,26755
|
||||
langgraph_sdk/_async/client.py,sha256=FeBbp0So3c_IQrkqjUnbU8L051BmjDWTUaS97UOalQE,6147
|
||||
langgraph_sdk/_async/cron.py,sha256=wu6O-GTkOW56HE4FoEg2IfNJZgj24MF3V0-ZqKW3_UU,20717
|
||||
langgraph_sdk/_async/http.py,sha256=doMmXtxGP4zXN2Hld4T3G_Ha8MJeOqK3tUBSBTFaN9I,10919
|
||||
langgraph_sdk/_async/runs.py,sha256=WrcpUJHF9XM9oaUyZNZZ4jQ8OekGdMMY0Z0q5OhXkSQ,44016
|
||||
langgraph_sdk/_async/store.py,sha256=udxTstmYXZc1RbabaTAY0HwjixmN9VhE3fZZab9ghQI,10601
|
||||
langgraph_sdk/_async/threads.py,sha256=225V1-0BirnoCEkrEcUdKIr6Accgo6WSgDBwSJictyY,25625
|
||||
langgraph_sdk/_shared/__init__.py,sha256=eF8OyKLbnhrS7i-QHQlnLhl5DiX3hpk6Sx4zO-w8tT8,51
|
||||
langgraph_sdk/_shared/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/_shared/__pycache__/types.cpython-311.pyc,,
|
||||
langgraph_sdk/_shared/__pycache__/utilities.cpython-311.pyc,,
|
||||
langgraph_sdk/_shared/types.py,sha256=FDulkcy-zBOAFjNdESSIVSBU6UZu9iPGgrVS-Yt4GRw,219
|
||||
langgraph_sdk/_shared/utilities.py,sha256=De4zvyyo4uu44gmCVgNDoGXX0LNMDf2CEOHZq46E7qM,4152
|
||||
langgraph_sdk/_sync/__init__.py,sha256=C6bw0m73g7CQDxXvvl40Vb4DoW9q4Fhy6u9c9DZ2IbI,643
|
||||
langgraph_sdk/_sync/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/assistants.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/client.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/cron.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/http.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/runs.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/store.cpython-311.pyc,,
|
||||
langgraph_sdk/_sync/__pycache__/threads.cpython-311.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=RlsIq33Su2KPj1dGN6n76vvFwG36HDRIW1NKTQK1Zt0,20271
|
||||
langgraph_sdk/_sync/http.py,sha256=lpOcrfNoQvmAaDv_f0e3sz2j3Tv2qITXJILefvdEa3k,10299
|
||||
langgraph_sdk/_sync/runs.py,sha256=UU7_ckB-yxjRbq0bZe_V75irqEwrzIxTSOUy1KJ5pDU,43083
|
||||
langgraph_sdk/_sync/store.py,sha256=YsjrbHSrWFs8tBu0g-4PSTnH1qw_HSX4IFO0HnfzB-k,10402
|
||||
langgraph_sdk/_sync/threads.py,sha256=ud12lx24NGpR9Mx-3F4_wRS4dhVYW4OjP67mC6yw3Yk,24797
|
||||
langgraph_sdk/auth/__init__.py,sha256=uGdTLajH9ihfsUz5d21oqYTUzgqJSwF-t8WctM5ZFHA,29123
|
||||
langgraph_sdk/auth/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/auth/__pycache__/exceptions.cpython-311.pyc,,
|
||||
langgraph_sdk/auth/__pycache__/types.cpython-311.pyc,,
|
||||
langgraph_sdk/auth/exceptions.py,sha256=tZm7iBYQuxNsQMZhTv4YaSrva5pEuBhS1PvWNaxnSPw,1744
|
||||
langgraph_sdk/auth/types.py,sha256=yjDJjlPieSCWvqDU6jbaHeW0mzmJTwV_QRtxZpfZ8kU,30617
|
||||
langgraph_sdk/client.py,sha256=kSQB8R84ssHndOplRYvU4-jUokJW_5z1HWXbsP1MU4Y,1951
|
||||
langgraph_sdk/encryption/__init__.py,sha256=92Wa4DRFggdkliMqTIxZB3ZlDD-A72GfISPelKiMMDA,15999
|
||||
langgraph_sdk/encryption/__pycache__/__init__.cpython-311.pyc,,
|
||||
langgraph_sdk/encryption/__pycache__/types.cpython-311.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=VWfh5Vs1WYyEowoE1mUZ8rGE_1kZspGoTvXIh3nOiTI,20012
|
||||
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.
|
||||
Reference in New Issue
Block a user