initial commit

This commit is contained in:
2026-05-11 12:36:20 +05:30
commit 384cbe8019
15377 changed files with 2360544 additions and 0 deletions

View File

@@ -0,0 +1 @@
pip

View File

@@ -0,0 +1,123 @@
Metadata-Version: 2.4
Name: langgraph
Version: 1.0.10
Summary: Building stateful, multi-actor applications with LLMs
Project-URL: Homepage, https://docs.langchain.com/oss/python/langgraph/overview
Project-URL: Documentation, https://reference.langchain.com/python/langgraph/
Project-URL: Source, https://github.com/langchain-ai/langgraph/tree/main/libs/langgraph
Project-URL: Changelog, https://github.com/langchain-ai/langgraph/releases
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
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: langchain-core>=0.1
Requires-Dist: langgraph-checkpoint<5.0.0,>=2.1.0
Requires-Dist: langgraph-prebuilt<1.1.0,>=1.0.8
Requires-Dist: langgraph-sdk<0.4.0,>=0.3.0
Requires-Dist: pydantic>=2.7.4
Requires-Dist: xxhash>=3.5.0
Description-Content-Type: text/markdown
<picture class="github-only">
<source media="(prefers-color-scheme: light)" srcset="https://langchain-ai.github.io/langgraph/static/wordmark_dark.svg">
<source media="(prefers-color-scheme: dark)" srcset="https://langchain-ai.github.io/langgraph/static/wordmark_light.svg">
<img alt="LangGraph Logo" src="https://langchain-ai.github.io/langgraph/static/wordmark_dark.svg" width="80%">
</picture>
<div>
<br>
</div>
[![Version](https://img.shields.io/pypi/v/langgraph.svg)](https://pypi.org/project/langgraph/)
[![Downloads](https://static.pepy.tech/badge/langgraph/month)](https://pepy.tech/project/langgraph)
[![Open Issues](https://img.shields.io/github/issues-raw/langchain-ai/langgraph)](https://github.com/langchain-ai/langgraph/issues)
[![Docs](https://img.shields.io/badge/docs-latest-blue)](https://docs.langchain.com/oss/python/langgraph/overview)
Trusted by companies shaping the future of agents including Klarna, Replit, Elastic, and more LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.
## Get started
Install LangGraph:
```
pip install -U langgraph
```
Create a simple workflow:
```python
from langgraph.graph import START, StateGraph
from typing_extensions import TypedDict
class State(TypedDict):
text: str
def node_a(state: State) -> dict:
return {"text": state["text"] + "a"}
def node_b(state: State) -> dict:
return {"text": state["text"] + "b"}
graph = StateGraph(State)
graph.add_node("node_a", node_a)
graph.add_node("node_b", node_b)
graph.add_edge(START, "node_a")
graph.add_edge("node_a", "node_b")
print(graph.compile().invoke({"text": ""}))
# {'text': 'ab'}
```
Get started with the [LangGraph Quickstart](https://docs.langchain.com/oss/python/langgraph/quickstart).
To quickly build agents with LangChain's `create_agent` (built on LangGraph), see the [LangChain Agents documentation](https://docs.langchain.com/oss/python/langchain/agents).
## Core benefits
LangGraph provides low-level supporting infrastructure for *any* long-running, stateful workflow or agent. LangGraph does not abstract prompts or architecture, and provides the following central benefits:
- [Durable execution](https://docs.langchain.com/oss/python/langgraph/durable-execution): Build agents that persist through failures and can run for extended periods, automatically resuming from exactly where they left off.
- [Human-in-the-loop](https://docs.langchain.com/oss/python/langgraph/interrupts): Seamlessly incorporate human oversight by inspecting and modifying agent state at any point during execution.
- [Comprehensive memory](https://docs.langchain.com/oss/python/langgraph/memory): Create truly stateful agents with both short-term working memory for ongoing reasoning and long-term persistent memory across sessions.
- [Debugging with LangSmith](http://www.langchain.com/langsmith): Gain deep visibility into complex agent behavior with visualization tools that trace execution paths, capture state transitions, and provide detailed runtime metrics.
- [Production-ready deployment](https://docs.langchain.com/langsmith/app-development): Deploy sophisticated agent systems confidently with scalable infrastructure designed to handle the unique challenges of stateful, long-running workflows.
## LangGraphs ecosystem
While LangGraph can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools for building agents. To improve your LLM application development, pair LangGraph with:
- [LangSmith](http://www.langchain.com/langsmith) — Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
- [LangSmith Deployment](https://docs.langchain.com/langsmith/deployments) — Deploy and scale agents effortlessly with a purpose-built deployment platform for long running, stateful workflows. Discover, reuse, configure, and share agents across teams — and iterate quickly with visual prototyping in [LangGraph Studio](https://docs.langchain.com/oss/python/langgraph/studio).
- [LangChain](https://docs.langchain.com/oss/python/langchain/overview) Provides integrations and composable components to streamline LLM application development.
> [!NOTE]
> Looking for the JS version of LangGraph? See the [JS repo](https://github.com/langchain-ai/langgraphjs) and the [JS docs](https://docs.langchain.com/oss/javascript/langgraph/overview).
## Additional resources
- [Guides](https://docs.langchain.com/oss/python/langgraph/guides): Quick, actionable code snippets for topics such as streaming, adding memory & persistence, and design patterns (e.g. branching, subgraphs, etc.).
- [Reference](https://reference.langchain.com/python/langgraph/): Detailed reference on core classes, methods, how to use the graph and checkpointing APIs, and higher-level prebuilt components.
- [Examples](https://docs.langchain.com/oss/python/langgraph/agentic-rag): Guided examples on getting started with LangGraph.
- [LangChain Forum](https://forum.langchain.com/): Connect with the community and share all of your technical questions, ideas, and feedback.
- [LangChain Academy](https://academy.langchain.com/courses/intro-to-langgraph): Learn the basics of LangGraph in our free, structured course.
- [Case studies](https://www.langchain.com/built-with-langgraph): Hear how industry leaders use LangGraph to ship AI applications at scale.
## Acknowledgements
LangGraph is inspired by [Pregel](https://research.google/pubs/pub37252/) and [Apache Beam](https://beam.apache.org/). The public interface draws inspiration from [NetworkX](https://networkx.org/documentation/latest/). LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.

View File

@@ -0,0 +1,137 @@
langgraph-1.0.10.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
langgraph-1.0.10.dist-info/METADATA,sha256=lcYagNInlMKXvi7BXdEqcqs8SQ8ZHoEqr1qKMAofZv0,7367
langgraph-1.0.10.dist-info/RECORD,,
langgraph-1.0.10.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
langgraph-1.0.10.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
langgraph-1.0.10.dist-info/licenses/LICENSE,sha256=2btS8uNUDWD_UNjw9ba6ZJt_00aUjEw9CGyK-xIHY8c,1072
langgraph/__pycache__/config.cpython-311.pyc,,
langgraph/__pycache__/constants.cpython-311.pyc,,
langgraph/__pycache__/errors.cpython-311.pyc,,
langgraph/__pycache__/runtime.cpython-311.pyc,,
langgraph/__pycache__/types.cpython-311.pyc,,
langgraph/__pycache__/typing.cpython-311.pyc,,
langgraph/__pycache__/version.cpython-311.pyc,,
langgraph/__pycache__/warnings.cpython-311.pyc,,
langgraph/_internal/__init__.py,sha256=Dvktj1s4Rf55IzePzzmJE4Ble1-6IcSRuSJEOqxZLKA,121
langgraph/_internal/__pycache__/__init__.cpython-311.pyc,,
langgraph/_internal/__pycache__/_cache.cpython-311.pyc,,
langgraph/_internal/__pycache__/_config.cpython-311.pyc,,
langgraph/_internal/__pycache__/_constants.cpython-311.pyc,,
langgraph/_internal/__pycache__/_fields.cpython-311.pyc,,
langgraph/_internal/__pycache__/_future.cpython-311.pyc,,
langgraph/_internal/__pycache__/_pydantic.cpython-311.pyc,,
langgraph/_internal/__pycache__/_queue.cpython-311.pyc,,
langgraph/_internal/__pycache__/_retry.cpython-311.pyc,,
langgraph/_internal/__pycache__/_runnable.cpython-311.pyc,,
langgraph/_internal/__pycache__/_scratchpad.cpython-311.pyc,,
langgraph/_internal/__pycache__/_serde.cpython-311.pyc,,
langgraph/_internal/__pycache__/_typing.cpython-311.pyc,,
langgraph/_internal/_cache.py,sha256=Jc8tJLApvlZx2nd1B_QHjcHS3A9HKhMa-N8Z7cs6ls8,1199
langgraph/_internal/_config.py,sha256=Ly9XJZS69RHjxTJNLES3XMwokcNEuRV5Uo3TAuM4bLA,10811
langgraph/_internal/_constants.py,sha256=B7ytTy0IEl2M23BR0KWsEARVIzdOJT1VpqQa1Jx3EQg,4541
langgraph/_internal/_fields.py,sha256=ItDH4rdUDxBvH-uR9j4qr5As1KZ-rxUvcKvgQQie51I,7368
langgraph/_internal/_future.py,sha256=h9lfbuNVJwtKFQP-CkPIkSURtsn6eRqZDKpvFEw6oTQ,7259
langgraph/_internal/_pydantic.py,sha256=C4zTw_lfol3RbxebGh2Gky8CUnhcVQ6HN8YHnUVeZsw,8801
langgraph/_internal/_queue.py,sha256=ZP71Oet8EKJec_yax2l0yGARajdqdn_a9pSVhuwvEFM,4451
langgraph/_internal/_retry.py,sha256=zufy97FUG8CskEhOn0iHn4CkB-LZLFLZqKO6t4-s4T4,773
langgraph/_internal/_runnable.py,sha256=gn3tHYLFx5F5iycBgGDWvh1v6YikwE2XlegXm4Ymu-w,31846
langgraph/_internal/_scratchpad.py,sha256=jWDvkceD2Krj48OT84SllAQw10zSgN5UPm3kjlu91EY,434
langgraph/_internal/_serde.py,sha256=fB3TIP3xG9sRYG6sWhNr6dszEp0-sN8ObGBDBVkoWpY,7306
langgraph/_internal/_typing.py,sha256=vG488MwvjGLute7EhfIOmlhX6IGsA0aa-ocUIInwCTY,1536
langgraph/channels/__init__.py,sha256=372ForR3mryHQ6mToSsQutmJ0bzLquqC3lyG3ajppQA,798
langgraph/channels/__pycache__/__init__.cpython-311.pyc,,
langgraph/channels/__pycache__/any_value.cpython-311.pyc,,
langgraph/channels/__pycache__/base.cpython-311.pyc,,
langgraph/channels/__pycache__/binop.cpython-311.pyc,,
langgraph/channels/__pycache__/ephemeral_value.cpython-311.pyc,,
langgraph/channels/__pycache__/last_value.cpython-311.pyc,,
langgraph/channels/__pycache__/named_barrier_value.cpython-311.pyc,,
langgraph/channels/__pycache__/topic.cpython-311.pyc,,
langgraph/channels/__pycache__/untracked_value.cpython-311.pyc,,
langgraph/channels/any_value.py,sha256=yrGudTesRcfPAlEbQncwW8D0iRySFtBWAVVBOU50qKs,1985
langgraph/channels/base.py,sha256=1kpUOzeYVTRxm8FHnZaBP09qD6JSwYRLovVC5gKoxek,3643
langgraph/channels/binop.py,sha256=brhiO_37mHU35BmpRBi-lw_8sYpU-tI-NGgUtJbdGEk,4484
langgraph/channels/ephemeral_value.py,sha256=gaSYhGJJdiyjujt3U4UHqZSzX7n5zykleld5AiI_ZXI,2402
langgraph/channels/last_value.py,sha256=NsvFhq6qwPjJtajYuQMDkCOn0kKUQIOR64x_EKqzowg,4324
langgraph/channels/named_barrier_value.py,sha256=GEmEAc_sG8bHNdgfLRE5Re_9VSDaxsuuF8WMp5G2Q0w,5165
langgraph/channels/topic.py,sha256=q7QFiZCZfEhNOPA0AeR0GtVDB6U4JYeU7jeZ6nyqJWQ,2863
langgraph/channels/untracked_value.py,sha256=6hVXPOeJkmm3W0qoHewEoIpe_HsIh9ZLuP-YEBVar-4,2186
langgraph/config.py,sha256=3VLF7x6a99LeU0MFyKk0q9ANc2lxsZ9l9W5hFMx_-6c,5603
langgraph/constants.py,sha256=qdHm5Yd72YAJyhBeyGZ9gtXeffjzHjGK3m-hS8ymxuM,1930
langgraph/errors.py,sha256=ksjw7Tup7sMw8Ibh6zA6g6HTCk5_Rc0CxBA2i72W5X0,3610
langgraph/func/__init__.py,sha256=ZbtODfYXZ1AM-yLKslKROMd-D4LxWEsrkkdsAz7heyw,21548
langgraph/func/__pycache__/__init__.cpython-311.pyc,,
langgraph/graph/__init__.py,sha256=s1dFdpjJYDrpmaKV0ILCxVMZp-A1F-ASE19oE-anGlI,284
langgraph/graph/__pycache__/__init__.cpython-311.pyc,,
langgraph/graph/__pycache__/_branch.cpython-311.pyc,,
langgraph/graph/__pycache__/_node.cpython-311.pyc,,
langgraph/graph/__pycache__/message.cpython-311.pyc,,
langgraph/graph/__pycache__/state.cpython-311.pyc,,
langgraph/graph/__pycache__/ui.cpython-311.pyc,,
langgraph/graph/_branch.py,sha256=LQ6NqZNu2qbKAgL1kXj-UDJtEPNO8sXIgqWc00Qw_kA,7515
langgraph/graph/_node.py,sha256=Nn4vVKPGPlAK3Ag0dkDD_4FyY-QEwDerMSXO8kuq5EI,3011
langgraph/graph/message.py,sha256=AJSEnI9uL6rc5nDOUoPW3yxTbgOd7QF88zubFGdIl6w,13013
langgraph/graph/state.py,sha256=eoqdMltiIXZsABznS2-lqV0LEeCkT65E_OQXSDmVI1c,64480
langgraph/graph/ui.py,sha256=dMWcScN-vyhZ0UI136fzuhO2vwtjS4-nmUoykIlsr3Y,6593
langgraph/managed/__init__.py,sha256=clcAhSfvR1E7l2XsgoTNdA0veBrW_wt8q-BmhIIy50E,114
langgraph/managed/__pycache__/__init__.cpython-311.pyc,,
langgraph/managed/__pycache__/base.cpython-311.pyc,,
langgraph/managed/__pycache__/is_last_step.cpython-311.pyc,,
langgraph/managed/base.py,sha256=H_usUAZdwWPc7g2e4h1CiRZSxdXpq0yffHTibjfNNok,639
langgraph/managed/is_last_step.py,sha256=b-DlgxeqCwsByxGeJYn8ydW3iMbAZkWkKC0wMtmT95E,634
langgraph/pregel/__init__.py,sha256=iOpmZ6Nwd0QyEl331Pp4-G4Y-ETRfthgCYc2GAcDtnY,91
langgraph/pregel/__pycache__/__init__.cpython-311.pyc,,
langgraph/pregel/__pycache__/_algo.cpython-311.pyc,,
langgraph/pregel/__pycache__/_call.cpython-311.pyc,,
langgraph/pregel/__pycache__/_checkpoint.cpython-311.pyc,,
langgraph/pregel/__pycache__/_config.cpython-311.pyc,,
langgraph/pregel/__pycache__/_draw.cpython-311.pyc,,
langgraph/pregel/__pycache__/_executor.cpython-311.pyc,,
langgraph/pregel/__pycache__/_io.cpython-311.pyc,,
langgraph/pregel/__pycache__/_log.cpython-311.pyc,,
langgraph/pregel/__pycache__/_loop.cpython-311.pyc,,
langgraph/pregel/__pycache__/_messages.cpython-311.pyc,,
langgraph/pregel/__pycache__/_read.cpython-311.pyc,,
langgraph/pregel/__pycache__/_retry.cpython-311.pyc,,
langgraph/pregel/__pycache__/_runner.cpython-311.pyc,,
langgraph/pregel/__pycache__/_utils.cpython-311.pyc,,
langgraph/pregel/__pycache__/_validate.cpython-311.pyc,,
langgraph/pregel/__pycache__/_write.cpython-311.pyc,,
langgraph/pregel/__pycache__/debug.cpython-311.pyc,,
langgraph/pregel/__pycache__/main.cpython-311.pyc,,
langgraph/pregel/__pycache__/protocol.cpython-311.pyc,,
langgraph/pregel/__pycache__/remote.cpython-311.pyc,,
langgraph/pregel/__pycache__/types.cpython-311.pyc,,
langgraph/pregel/_algo.py,sha256=dC3QByIFhh6YCPgJ7K9GJnJo7y72-YtnMV-l3HxPrTg,44380
langgraph/pregel/_call.py,sha256=cDwXdYopyxD4ZlFJa9ZudN-KXM-dhnhuJbKcPs0Je4s,8893
langgraph/pregel/_checkpoint.py,sha256=41YO8HI43IiEtlFlqzBzLgTSrxU9PTJScOdr1n9ak4Y,2742
langgraph/pregel/_config.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
langgraph/pregel/_draw.py,sha256=QDm6stURUdux0y0HwzyqJyC1_a_ZSKwGdLb7fsPGgCg,10464
langgraph/pregel/_executor.py,sha256=WvsefnvXaPxf9-1eIiU5q7c70R-I2OFQ63XDCoSENk0,8185
langgraph/pregel/_io.py,sha256=qcLBa_9g2OQrLW-S9NiwBIlph7pSY1UUipx3ipnA5UQ,5826
langgraph/pregel/_log.py,sha256=t-xud4CqQEuksPqjXZm728BL2cFQvHXRvTm5XgU13BM,56
langgraph/pregel/_loop.py,sha256=2hwg6LITcSqxHCR3uLx0s6uuxsB6Y0WDsCuHfX7-LAc,49628
langgraph/pregel/_messages.py,sha256=hfK3YnFqGn6Oh8k-Et-ciSLYBC1BZQC9fumisgPnD5g,8680
langgraph/pregel/_read.py,sha256=v7QIRXGToZAkz77CRyg8YBQZNr35P1Vzxwi77BqKEPM,9224
langgraph/pregel/_retry.py,sha256=dK7FwMsuVikf3OiuOl7LXrwc8F-yP4gjt8fzSfBSBwc,8892
langgraph/pregel/_runner.py,sha256=7mkkD_R6DCqQxg4LqSDthCeGz18UHuKRIj0HNX4ZDc8,27935
langgraph/pregel/_utils.py,sha256=cs0h4hidu_Lz_O_AVzuYPUshV7OYVE-mS2l7RcwBvI8,6957
langgraph/pregel/_validate.py,sha256=YmQUJFgNDcX3eWxHUFIKe2YLgMantX30Y9QmdFumpHY,4473
langgraph/pregel/_write.py,sha256=TwZ8HANPqyvmguxSthAWMdRElKDSP5BIqvvmX2YCGNI,7309
langgraph/pregel/debug.py,sha256=Th0KNHTo_K-1KIFOY7XUxCphizBKHlk-aGyYDCeYz8g,9599
langgraph/pregel/main.py,sha256=pHeoxU29B78uu4xEgicTGu2XTRsumuZL7o07Z4PDPEQ,132641
langgraph/pregel/protocol.py,sha256=JMrdJ007MD4mrxyKw3ImL9bznVbn5S_hgWCVJtdzZyI,4712
langgraph/pregel/remote.py,sha256=j9R7o4VymS4WgMj839Rl0VLNpo0vZrH8ytlH1AMNrrw,37580
langgraph/pregel/types.py,sha256=tYuSVBEwsXEyBGMfL5mMXKoPgU84NVb-srwMTZIyPZc,737
langgraph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
langgraph/runtime.py,sha256=uIiiDs-StNpTaMT_kWZYQGQBMPJCg1wXqdglJatAygA,5331
langgraph/types.py,sha256=SyOs5twPpk8dPBPwhdWtC7WmQfRVGOCofossbkK9_-s,19654
langgraph/typing.py,sha256=G_pkf2WXoJs32o2JjEIk4w22SmjtalI8Qx32fVarPMs,1260
langgraph/utils/__init__.py,sha256=runx1cKAovPU00cuUrfeZXySe3y15_mOnmXcZ1VDBGo,52
langgraph/utils/__pycache__/__init__.cpython-311.pyc,,
langgraph/utils/__pycache__/config.cpython-311.pyc,,
langgraph/utils/__pycache__/runnable.cpython-311.pyc,,
langgraph/utils/config.py,sha256=F__Qjb1B9dMXXVS-WksS0iSAFwAH0HjzPCZndTHP8HE,228
langgraph/utils/runnable.py,sha256=CnVWTSfdVOn51OW99ijmTA-dPVLhQYgPCQjSNZFOxno,164
langgraph/version.py,sha256=EwXAUHDXe8RTJNvgnEeIML9_8RaU2s8Nv9Wcb3hVGsg,331
langgraph/warnings.py,sha256=0w6k4fZQ_lfVHhKGsBngwMnTO-Zuk_iADYbO1SHmoQc,2122

View File

@@ -0,0 +1,4 @@
Wheel-Version: 1.0
Generator: hatchling 1.29.0
Root-Is-Purelib: true
Tag: py3-none-any

View File

@@ -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.