langchain-ai /langchain
The agent engineering platform.
★ 149,297⑂ 25,102👁 921⑃ 25,243● 10,623▤ 1,000◈ 4
149,297
stars
+44
25,102
forks
921
watchers
25,243
prs
10,623
issues
1,000
releases
4
discussions
README
The agent engineering platform.
LangChain is a framework for building agents and LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.
[!TIP]
Just getting started? Check out Deep Agents — a higher-level package built on LangChain for agents that have built-in capabilities for common usage patterns such as planning, subagents, file system usage, and more.
Quickstart
bash
uv add langchain
python
from langchain.chat_models import init_chat_model
model = init_chat_model("openai:gpt-5.5")
result = model.invoke("Hello, world!")
If you're looking for more advanced customization or agent orchestration, check out LangGraph, our framework for building controllable agent workflows.
For an equivalent JS/TS library, check out LangChain.js.
[!TIP]
For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.
LangChain ecosystem
While the LangChain framework can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools when building LLM applications.
- Deep Agents — Build agents that can plan, use subagents, and leverage file systems for complex tasks
- LangGraph — Build agents that can reliably handle complex tasks with our low-level agent orchestration framework
- Integrations — Chat & embedding models, tools & toolkits, and more
- LangSmith — Agent evals, observability, and debugging for LLM apps
- LangSmith Deployment — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows
Why use LangChain?
LangChain helps developers build applications powered by LLMs through a standard interface for models, embeddings, vector stores, and more.
- Real-time data augmentation — Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain's vast library of integrations with model providers, tools, vector stores, retrievers, and more
- Model interoperability — Swap models in and out as your engineering team experiments to find the best choice for your application's needs. As the industry frontier evolves, adapt quickly — LangChain's abstractions keep you moving without losing momentum
- Rapid prototyping — Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle
- Production-ready features — Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices
- Vibrant community and ecosystem — Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-Top issues
#31802`EvaluationResult.feedback_config` silently drops unknown or partial dict fields without error43 comments · 2025-07-01#32885Harmony: bad request on gpt-oss-120b and tool calls with `create_react_agent`35 comments · 2025-09-08#32197Support structured output with Pydantic models in `langchain-huggingface`35 comments · 2025-07-23#34328OpenRouter / LiteLLM / OpenAI API compatibility across providers / proxies30 comments · 2025-12-12#36603Doesn't honour pydantic model field datatype and randomly throws `langchain_core.exceptions.OutputParserException`28 comments · 2026-04-08#34974Human In the Loop Middleware throws error when the agent is invoked as .ainvoke()28 comments · 2026-02-02#36853Architecture Proposal: Hardening PythonREPLTool Local Execution via Defense-in-Depth (AST + PEP 578)25 comments · 2026-04-17#36290Agent with structured output fails when OpenAI response has phased response with 'commentary' and 'final_answer'25 comments · 2026-03-27
Discussions
#35700Making it easier to contribute to LangChain17 comments · 2026-03-09#35672New first-party packages: `langchain-openrouter` and `langchain-litellm`8 comments · 2026-03-08#34690Deprecation Notice: LangSmith Tracing Changes4 comments · 2026-01-09#31978Discussions have moved to the LangChain Forum!0 comments · 2025-07-11
Latest release
langchain-core==1.7.6 langchain-core==1.7.6 2026-11-05Changes since langchain-core==1.7.5 release(core): 1.7.6 (41698) perf(core): merge streamed AIMessageChunks once when accumulating runnable streams (41697) perf(core): stop parse_partial_json from retrying one character at a time (41467)
相关报道 (6)
remioAnthropic GitHub 修复 LangChain 1.5.3 中两项隐藏故障2026-10-19积墨 AI57k Star霸榜GitHub!字节这款超级智能体,凭何让全球AI圈真香?2026-04-04腾讯新闻LangChain 发布 Deep Agents:自主智能体框架2026-02-0851CTO掌握RAG系统的七个优秀GitHub存储库2025-10-29InfoQ.cn字节跳动 Deep Research 项目正式开源:基于 LangStack,支持 MCP 无缝集成2025-05-16智源社区免费书|LangChain和LlamaIndex项目实践:将大型语言模型应用于现实世界2023-05-29
News & coverage (19)
Hacker NewsNew: LangChain templates – fastest way to build a production-ready LLM app▲ 137 · 69 comments · 2023-11-01Hacker NewsOpen SWE: An open-source asynchronous coding agent▲ 111 · 26 comments · 2025-08-08Hacker NewsShow HN: MCPS – Cryptographic identity and message signing for MCP agents▲ 2 · 0 comments · 2026-03-13Analytics InsightLangGraph vs LangChain: Which AI Agent Framework Should You Choose?2026-09-21build.nvidia.comWhat is NemoClaw for LangChain Deep Agents Code?2026-07-08learnTutorial: Build a RAG pipeline using Azure Files with LangChain and Qdrant2026-04-22The Hacker NewsLangChain, LangGraph Flaws Expose Files, Secrets, Databases in Widely Used AI Frameworks2026-03-27irblog.prnewswire.comLangChain Announces Enterprise Agentic AI Platform Built with NVIDIA2026-03-16SiliconANGLEAI agent tooling provider LangChain raises $125M at $1.25B valuation2025-10-20TechCrunchLangChain is about to become a unicorn, sources say2025-07-08