langchain

Building applications with LLMs through composability

MIT 504 个版本 Python <4.0.0,>=3.10.0
安装
pip install langchain
poetry add langchain
pipenv install langchain
conda install langchain
描述

🦜️🔗 LangChain

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

To help you ship LangChain apps to production faster, check out LangSmith. LangSmith is a unified developer platform for building, testing, and monitoring LLM applications.

Quick Install

uv add langchain

🤔 What is this?

LangChain is the easiest way to start building agents and applications powered by LLMs. With under 10 lines of code, you can connect to OpenAI, Anthropic, Google, and more. LangChain provides a pre-built agent architecture and model integrations to help you get started quickly and seamlessly incorporate LLMs into your agents and applications.

We recommend you use LangChain if you want to quickly build agents and autonomous applications. Use LangGraph, our low-level agent orchestration framework and runtime, when you have more advanced needs that require a combination of deterministic and agentic workflows, heavy customization, and carefully controlled latency.

LangChain agents are built on top of LangGraph in order to provide durable execution, streaming, human-in-the-loop, persistence, and more. (You do not need to know LangGraph for basic LangChain agent usage.)

📖 Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using LangChain, see the LangChain Docs. You can also chat with the docs using Chat LangChain.

📕 Releases & Versioning

See our Releases and Versioning policies.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

Resources

  • LangChain Academy — comprehensive, free courses on LangChain libraries and products, made by the LangChain team
  • Code of Conduct — community guidelines and standards
版本列表
1.3.10 2026-06-18
1.3.9 2026-06-12
1.3.8 2026-06-12
1.3.7 2026-06-10
1.3.6 2026-06-10
1.3.5 2026-06-10
1.3.4 2026-06-02
1.3.3 2026-06-02
1.3.2 2026-05-26
1.3.1 2026-05-15
1.3.0 2026-05-12
1.3.0a2 2026-05-06
1.3.0a1 2026-05-01
1.2.18 2026-05-08
1.2.17 2026-04-30
1.2.16 2026-04-29
1.2.15 2026-04-03
1.2.14 2026-03-31
1.2.13 2026-03-19
1.2.12 2026-03-11
1.2.11 2026-03-10
1.2.10 2026-02-10
1.2.9 2026-02-06
1.2.8 2026-02-02
1.2.7 2026-01-23
1.2.6 2026-01-16
1.2.5 2026-01-16
1.2.4 2026-01-14
1.2.3 2026-01-08
1.2.2 2026-01-07
1.2.1 2026-01-07
1.2.0 2025-12-15
1.1.3 2025-12-08
1.1.2 2025-12-04
1.1.1 2025-12-04
1.1.0 2025-11-24
1.0.8 2025-11-19
1.0.7 2025-11-14
1.0.6 2025-11-14
1.0.5 2025-11-07
1.0.4 2025-11-06
1.0.3 2025-10-29
1.0.2 2025-10-21
1.0.1 2025-10-20
1.0.0 2025-10-17
1.0.0rc2 2025-10-17
1.0.0rc1 2025-10-16
1.0.0a9 2025-09-24
1.0.0a8 2025-09-24
1.0.0a7 2025-09-23
1.0.0a6 2025-09-19
1.0.0a5 2025-09-12
1.0.0a4 2025-09-08
1.0.0a3 2025-09-02
1.0.0a2 2025-08-28
1.0.0a15 2025-10-15
1.0.0a14 2025-10-11
1.0.0a13 2025-10-10
1.0.0a12 2025-10-06
1.0.0a11 2025-10-06
1.0.0a10 2025-09-29
1.0.0a1 2025-08-27
0.4.0.dev0 2025-08-05
0.3.30 2026-05-07
0.3.29 2026-05-05
0.3.28 2026-03-06
0.3.27 2025-07-24
0.3.26 2025-06-20
0.3.25 2025-05-02
0.3.24 2025-04-22
0.3.23 2025-04-04
0.3.22 2025-03-31
0.3.21 2025-03-18
0.3.20 2025-03-04
0.3.19 2025-02-17
0.3.18 2025-02-07
0.3.17 2025-01-29
0.3.16 2025-01-28
0.3.15 2025-01-21
0.3.14 2025-01-03
0.3.13 2024-12-18
0.3.12 2024-12-14
0.3.11 2024-12-10
0.3.10 2024-12-06
0.3.9 2024-11-27
0.3.8 2024-11-23
0.3.7 2024-11-01
0.3.6 2024-10-31
0.3.5 2024-10-30
0.3.4 2024-10-18
0.3.3 2024-10-08
0.3.2 2024-10-03
0.3.1 2024-09-25
0.3.0 2024-09-13
0.3.0.dev2 2024-09-11
0.3.0.dev1 2024-09-05
0.3.18rc2 2025-02-06
0.3.18rc1 2025-02-03
0.2.17 2024-11-04
0.2.16 2024-09-03
0.2.15 2024-08-28
0.2.14 2024-08-15
0.2.13 2024-08-12
0.2.12 2024-08-02
0.2.11 2024-07-23
0.2.10 2024-07-19
0.2.9 2024-07-17
0.2.8 2024-07-15
0.2.7 2024-07-08
0.2.6 2024-06-25
0.2.5 2024-06-14
0.2.4 2024-06-14
0.2.3 2024-06-06
0.2.2 2024-06-04
0.2.1 2024-05-23
0.2.0 2024-05-17
0.2.0rc2 2024-05-09
0.2.0rc1 2024-05-08
0.1.20 2024-05-10
0.1.19 2024-05-08
0.1.17 2024-04-30
0.1.16 2024-04-11
0.1.15 2024-04-09
0.1.14 2024-04-01
0.1.13 2024-03-20
0.1.12 2024-03-13
0.1.11 2024-03-05
0.1.10 2024-03-02
0.1.9 2024-02-23
0.1.8 2024-02-19
0.1.7 2024-02-13
0.1.6 2024-02-09
0.1.5 2024-02-01
0.1.4 2024-01-25
0.1.3 2024-01-23
0.1.2 2024-01-22
0.1.1 2024-01-16
0.1.0 2024-01-06
0.1.17rc1 2024-04-26
0.0.354 2024-01-03
0.0.353 2023-12-29
0.0.352 2023-12-20
0.0.351 2023-12-18
0.0.350 2023-12-12
0.0.349 2023-12-11
0.0.348 2023-12-07
0.0.347 2023-12-07
0.0.346 2023-12-05
0.0.345 2023-12-02
0.0.344 2023-12-01
0.0.343 2023-11-29
0.0.342 2023-11-28
0.0.341 2023-11-27
0.0.340 2023-11-23
0.0.339 2023-11-20
0.0.338 2023-11-18
0.0.337 2023-11-17
0.0.336 2023-11-15
0.0.335 2023-11-12
0.0.334 2023-11-10
0.0.333 2023-11-09
0.0.332 2023-11-08
0.0.331 2023-11-06
0.0.330 2023-11-03
0.0.329 2023-11-02
0.0.327 2023-10-31
0.0.326 2023-10-30
0.0.325 2023-10-27
0.0.324 2023-10-26
0.0.323 2023-10-25
0.0.322 2023-10-24
0.0.321 2023-10-23
0.0.320 2023-10-21
0.0.319 2023-10-19
0.0.318 2023-10-19
0.0.317 2023-10-18
0.0.316 2023-10-17
0.0.315 2023-10-16
0.0.314 2023-10-13
0.0.313 2023-10-12
0.0.312 2023-10-10
0.0.311 2023-10-09
0.0.310 2023-10-06
0.0.309 2023-10-05
0.0.308 2023-10-04
0.0.307 2023-10-04
0.0.306 2023-10-02
0.0.305 2023-09-29
0.0.304 2023-09-28
0.0.303 2023-09-27
0.0.302 2023-09-26
0.0.301 2023-09-25
0.0.300 2023-09-22
0.0.299 2023-09-22
0.0.298 2023-09-21
0.0.297 2023-09-20
0.0.296 2023-09-20
0.0.295 2023-09-19
0.0.294 2023-09-18
0.0.293 2023-09-18
0.0.292 2023-09-15
0.0.291 2023-09-14
0.0.290 2023-09-14
0.0.289 2023-09-14
0.0.288 2023-09-13
0.0.287 2023-09-12
0.0.286 2023-09-11
0.0.285 2023-09-08
0.0.284 2023-09-07
0.0.283 2023-09-06
0.0.281 2023-09-04
0.0.279 2023-09-01
0.0.278 2023-08-31
0.0.277 2023-08-30
0.0.276 2023-08-29
0.0.275 2023-08-28
0.0.274 2023-08-26
0.0.273 2023-08-25
0.0.272 2023-08-24
0.0.271 2023-08-22
0.0.270 2023-08-21
0.0.269 2023-08-21
0.0.268 2023-08-18
0.0.267 2023-08-17
0.0.266 2023-08-16
0.0.265 2023-08-15
0.0.264 2023-08-14
0.0.263 2023-08-12
0.0.262 2023-08-11
0.0.261 2023-08-10
0.0.260 2023-08-09
0.0.259 2023-08-09
0.0.258 2023-08-08
0.0.257 2023-08-08
0.0.256 2023-08-07
0.0.255 2023-08-07
0.0.254 2023-08-06
0.0.253 2023-08-05
0.0.252 2023-08-04
0.0.251 2023-08-03
0.0.250 2023-08-02
0.0.249 2023-08-01
0.0.248 2023-07-31
0.0.247 2023-07-29
0.0.246 2023-07-28
0.0.245 2023-07-27
0.0.244 2023-07-26
0.0.243 2023-07-26
0.0.242 2023-07-25
0.0.240 2023-07-22
0.0.239 2023-07-21
0.0.238 2023-07-20
0.0.237 2023-07-19
0.0.236 2023-07-19
0.0.235 2023-07-17
0.0.234 2023-07-15
0.0.233 2023-07-14
0.0.232 2023-07-13
0.0.231 2023-07-12
0.0.230 2023-07-11
0.0.229 2023-07-10
0.0.228 2023-07-08
0.0.227 2023-07-07
0.0.226 2023-07-07
0.0.225 2023-07-06
0.0.224 2023-07-05
0.0.223 2023-07-04
0.0.222 2023-07-03
0.0.221 2023-07-02
0.0.220 2023-06-30
0.0.219 2023-06-29
0.0.218 2023-06-28
0.0.217 2023-06-27
0.0.216 2023-06-26
0.0.215 2023-06-25
0.0.214 2023-06-24
0.0.213 2023-06-24
0.0.212 2023-06-23
0.0.211 2023-06-23
0.0.210 2023-06-23
0.0.209 2023-06-22
0.0.208 2023-06-21
0.0.207 2023-06-20
0.0.206 2023-06-20
0.0.205 2023-06-19
0.0.204 2023-06-19
0.0.203 2023-06-18
0.0.202 2023-06-16
0.0.201 2023-06-15
0.0.200 2023-06-14
0.0.199 2023-06-13
0.0.198 2023-06-12
0.0.197 2023-06-11
0.0.196 2023-06-10
0.0.195 2023-06-09
0.0.194 2023-06-08
0.0.193 2023-06-07
0.0.192 2023-06-07
0.0.191 2023-06-06
0.0.190 2023-06-05
0.0.189 2023-06-02
0.0.188 2023-06-01
0.0.187 2023-05-31
0.0.186 2023-05-30
0.0.185 2023-05-30
0.0.184 2023-05-29
0.0.183 2023-05-28
0.0.182 2023-05-28
0.0.181 2023-05-26
0.0.180 2023-05-25
0.0.179 2023-05-24
0.0.178 2023-05-23
0.0.177 2023-05-22
0.0.176 2023-05-21
0.0.175 2023-05-20
0.0.174 2023-05-19
0.0.173 2023-05-18
0.0.172 2023-05-17
0.0.171 2023-05-16
0.0.170 2023-05-15
0.0.169 2023-05-14
0.0.168 2023-05-13
0.0.167 2023-05-12
0.0.166 2023-05-11
0.0.165 2023-05-10
0.0.164 2023-05-10
0.0.163 2023-05-09
0.0.162 2023-05-08
0.0.161 2023-05-06
0.0.160 2023-05-06
0.0.159 2023-05-05
0.0.158 2023-05-04
0.0.157 2023-05-03
0.0.156 2023-05-02
0.0.155 2023-05-02
0.0.154 2023-05-01
0.0.153 2023-04-29
0.0.152 2023-04-28
0.0.151 2023-04-27
0.0.150 2023-04-26
0.0.149 2023-04-25
0.0.148 2023-04-24
0.0.147 2023-04-22
0.0.146 2023-04-21
0.0.145 2023-04-20
0.0.144 2023-04-19
0.0.143 2023-04-18
0.0.142 2023-04-17
0.0.141 2023-04-15
0.0.140 2023-04-15
0.0.139 2023-04-13
0.0.138 2023-04-12
0.0.137 2023-04-11
0.0.136 2023-04-09
0.0.135 2023-04-08
0.0.134 2023-04-07
0.0.133 2023-04-06
0.0.132 2023-04-05
0.0.131 2023-04-04
0.0.130 2023-04-03
0.0.129 2023-04-01
0.0.128 2023-03-31
0.0.127 2023-03-30
0.0.126 2023-03-29
0.0.125 2023-03-28
0.0.124 2023-03-28
0.0.123 2023-03-24
0.0.122 2023-03-24
0.0.121 2023-03-23
0.0.120 2023-03-23
0.0.119 2023-03-22
0.0.118 2023-03-21
0.0.117 2023-03-20
0.0.116 2023-03-19
0.0.115 2023-03-17
0.0.114 2023-03-17
0.0.113 2023-03-15
0.0.112 2023-03-14
0.0.111 2023-03-14
0.0.110 2023-03-14
0.0.109 2023-03-13
0.0.108 2023-03-12
0.0.107 2023-03-10
0.0.106 2023-03-09
0.0.105 2023-03-09
0.0.104 2023-03-08
0.0.103 2023-03-07
0.0.102 2023-03-06
0.0.101 2023-03-04
0.0.100 2023-03-02
0.0.99 2023-03-02
0.0.98 2023-03-01
0.0.97 2023-03-01
0.0.96 2023-02-28
0.0.95 2023-02-27
0.0.94 2023-02-24
0.0.93 2023-02-23
0.0.92 2023-02-21
0.0.91 2023-02-20
0.0.90 2023-02-19
0.0.89 2023-02-18
0.0.88 2023-02-16
0.0.87 2023-02-15
0.0.86 2023-02-14
0.0.85 2023-02-13
0.0.84 2023-02-12
0.0.83 2023-02-11
0.0.82 2023-02-10
0.0.81 2023-02-09
0.0.80 2023-02-08
0.0.79 2023-02-07
0.0.78 2023-02-06
0.0.77 2023-02-03
0.0.76 2023-02-02
0.0.75 2023-01-31
0.0.74 2023-01-29
0.0.73 2023-01-27
0.0.72 2023-01-27
0.0.71 2023-01-27
0.0.70 2023-01-26
0.0.69 2023-01-24
0.0.68 2023-01-23
0.0.67 2023-01-22
0.0.66 2023-01-20
0.0.65 2023-01-18
0.0.64 2023-01-16
0.0.63 2023-01-14
0.0.61 2023-01-12
0.0.60 2023-01-11
0.0.59 2023-01-09
0.0.58 2023-01-06
0.0.57 2023-01-05
0.0.56 2023-01-04
0.0.55 2023-01-03
0.0.54 2023-01-02
0.0.53 2022-12-30
0.0.52 2022-12-29
0.0.51 2022-12-28
0.0.50 2022-12-28
0.0.49 2022-12-27
0.0.48 2022-12-26
0.0.47 2022-12-25
0.0.46 2022-12-24
0.0.45 2022-12-23
0.0.44 2022-12-22
0.0.43 2022-12-21
0.0.42 2022-12-20
0.0.41 2022-12-19
0.0.40 2022-12-17
0.0.39 2022-12-16
0.0.38 2022-12-15
0.0.37 2022-12-14
0.0.36 2022-12-13
0.0.35 2022-12-11
0.0.34 2022-12-10
0.0.33 2022-12-09
0.0.32 2022-12-08
0.0.31 2022-12-07
0.0.30 2022-12-06
0.0.29 2022-12-05
0.0.28 2022-12-05
0.0.27 2022-12-02
0.0.26 2022-12-01
0.0.25 2022-11-30
0.0.24 2022-11-29
0.0.23 2022-11-28
0.0.22 2022-11-26
0.0.21 2022-11-25
0.0.20 2022-11-23
0.0.19 2022-11-22
0.0.18 2022-11-21
0.0.17 2022-11-20
0.0.16 2022-11-18
0.0.15 2022-11-17
0.0.14 2022-11-15
0.0.13 2022-11-14
0.0.12 2022-11-11
0.0.11 2022-11-10
0.0.10 2022-11-09
0.0.9 2022-11-08
0.0.8 2022-11-07
0.0.7 2022-11-03
0.0.6 2022-11-02
0.0.5 2022-11-01
0.0.4 2022-10-28
0.0.3 2022-10-27
0.0.2 2022-10-26
0.0.1 2022-10-25
0.0.99rc0 2023-03-02
0.0.349rc2 2023-12-09
0.0.349rc1 2023-12-08
0.0.339rc3 2023-11-25
0.0.339rc2 2023-11-23
0.0.339rc1 2023-11-22
0.0.339rc0 2023-11-21
0.0.331rc3 2023-11-08
0.0.331rc2 2023-11-07
0.0.331rc1 2023-11-06
0.0.331rc0 2023-11-06
0.0.240rc4 2023-07-22
0.0.240rc1 2023-07-21
0.0.240rc0 2023-07-21
0.0.102rc0 2023-03-05
0.0.101rc0 2023-03-02