METADATA 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Metadata-Version: 2.4
  2. Name: langgraph
  3. Version: 1.0.5
  4. Summary: Building stateful, multi-actor applications with LLMs
  5. Project-URL: Homepage, https://docs.langchain.com/oss/python/langgraph/overview
  6. Project-URL: Documentation, https://reference.langchain.com/python/langgraph/
  7. Project-URL: Source, https://github.com/langchain-ai/langgraph/tree/main/libs/langgraph
  8. Project-URL: Changelog, https://github.com/langchain-ai/langgraph/releases
  9. Project-URL: Twitter, https://x.com/LangChainAI
  10. Project-URL: Slack, https://www.langchain.com/join-community
  11. Project-URL: Reddit, https://www.reddit.com/r/LangChain/
  12. License-Expression: MIT
  13. License-File: LICENSE
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Programming Language :: Python :: 3 :: Only
  18. Classifier: Programming Language :: Python :: 3.10
  19. Classifier: Programming Language :: Python :: 3.11
  20. Classifier: Programming Language :: Python :: 3.12
  21. Classifier: Programming Language :: Python :: 3.13
  22. Classifier: Programming Language :: Python :: Implementation :: CPython
  23. Classifier: Programming Language :: Python :: Implementation :: PyPy
  24. Requires-Python: >=3.10
  25. Requires-Dist: langchain-core>=0.1
  26. Requires-Dist: langgraph-checkpoint<4.0.0,>=2.1.0
  27. Requires-Dist: langgraph-prebuilt<1.1.0,>=1.0.2
  28. Requires-Dist: langgraph-sdk<0.4.0,>=0.3.0
  29. Requires-Dist: pydantic>=2.7.4
  30. Requires-Dist: xxhash>=3.5.0
  31. Description-Content-Type: text/markdown
  32. <picture class="github-only">
  33. <source media="(prefers-color-scheme: light)" srcset="https://langchain-ai.github.io/langgraph/static/wordmark_dark.svg">
  34. <source media="(prefers-color-scheme: dark)" srcset="https://langchain-ai.github.io/langgraph/static/wordmark_light.svg">
  35. <img alt="LangGraph Logo" src="https://langchain-ai.github.io/langgraph/static/wordmark_dark.svg" width="80%">
  36. </picture>
  37. <div>
  38. <br>
  39. </div>
  40. [![Version](https://img.shields.io/pypi/v/langgraph.svg)](https://pypi.org/project/langgraph/)
  41. [![Downloads](https://static.pepy.tech/badge/langgraph/month)](https://pepy.tech/project/langgraph)
  42. [![Open Issues](https://img.shields.io/github/issues-raw/langchain-ai/langgraph)](https://github.com/langchain-ai/langgraph/issues)
  43. [![Docs](https://img.shields.io/badge/docs-latest-blue)](https://docs.langchain.com/oss/python/langgraph/overview)
  44. 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.
  45. ## Get started
  46. Install LangGraph:
  47. ```
  48. pip install -U langgraph
  49. ```
  50. Create a simple workflow:
  51. ```python
  52. from langgraph.graph import START, StateGraph
  53. from typing_extensions import TypedDict
  54. class State(TypedDict):
  55. text: str
  56. def node_a(state: State) -> dict:
  57. return {"text": state["text"] + "a"}
  58. def node_b(state: State) -> dict:
  59. return {"text": state["text"] + "b"}
  60. graph = StateGraph(State)
  61. graph.add_node("node_a", node_a)
  62. graph.add_node("node_b", node_b)
  63. graph.add_edge(START, "node_a")
  64. graph.add_edge("node_a", "node_b")
  65. print(graph.compile().invoke({"text": ""}))
  66. # {'text': 'ab'}
  67. ```
  68. Get started with the [LangGraph Quickstart](https://docs.langchain.com/oss/python/langgraph/quickstart).
  69. 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).
  70. ## Core benefits
  71. 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:
  72. - [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.
  73. - [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.
  74. - [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.
  75. - [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.
  76. - [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.
  77. ## LangGraph’s ecosystem
  78. 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:
  79. - [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.
  80. - [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).
  81. - [LangChain](https://docs.langchain.com/oss/python/langchain/overview) – Provides integrations and composable components to streamline LLM application development.
  82. > [!NOTE]
  83. > 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).
  84. ## Additional resources
  85. - [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.).
  86. - [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.
  87. - [Examples](https://docs.langchain.com/oss/python/langgraph/agentic-rag): Guided examples on getting started with LangGraph.
  88. - [LangChain Forum](https://forum.langchain.com/): Connect with the community and share all of your technical questions, ideas, and feedback.
  89. - [LangChain Academy](https://academy.langchain.com/courses/intro-to-langgraph): Learn the basics of LangGraph in our free, structured course.
  90. - [Case studies](https://www.langchain.com/built-with-langgraph): Hear how industry leaders use LangGraph to ship AI applications at scale.
  91. ## Acknowledgements
  92. 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.