Skip to main content
AgentsUse

Python agent framework

LangChain

Agent framework for Python and TypeScript that standardizes model, tool, and retrieval interfaces so teams can swap providers without rewriting the agent loop.

PythonMITChecked 2026-10-29Source-verified

Quick decision

Ecosystem
Python, TypeScript
License
Open source, MIT
Package
PyPI: langchain, version 1.5.0
Review state
Source-verified. Checked 2026-10-29; not locally tested by AgentsUse.

What it is

LangChain chains interoperable components and third-party integrations behind common interfaces. The Python package connects models from providers such as OpenAI, Anthropic, and Google through a prebuilt agent architecture, so provider choice stays a configuration decision rather than a rewrite.

The design centers on model interoperability, real-time data access through a large integration library, and rapid prototyping with modular components. Projects that outgrow the prebuilt loop move to LangGraph for orchestration control; LangChain agents already run on LangGraph, which provides durable execution, streaming, human-in-the-loop review, and persistence.

The wider ecosystem splits responsibilities cleanly: LangGraph for low-level orchestration, LangSmith for evaluation and observability, and deployment tooling for long-running stateful workflows. This record covers the Python package; the repository also references an equivalent JavaScript and TypeScript library.

What it does

  • Standard interfaces for chat models, embedding models, vector stores, retrievers, and tools.
  • A prebuilt agent architecture on LangGraph, with durable execution, streaming, and persistence included.
  • A large official integrations catalog spanning search, scraping, browser, and platform tools.
  • Provider swapping through common abstractions, which keeps model experiments cheap.
  • LangSmith integration for tracing, evaluation, observability, and debugging.

What it does not do

  • Search, scraping, and browser automation come from integration partners and their API keys. LangChain supplies the wiring, not the hosted service.
  • Heavily custom or deterministic workflows belong in LangGraph. The docs route those users there directly.
  • Provider credentials, tool permissions, and production monitoring still need separate configuration.

Setup

Install LangChain and call a model

Repository quickstart: install the Python package, then initialize a chat model with a provider string.

Install LangChain and call a model
uv add langchain

from langchain.chat_models import init_chat_model
model = init_chat_model("openai:gpt-5.5")
result = model.invoke("Hello, world!")

Environment variables (names only; use your own values)

  • OPENAI_API_KEY

Source: https://github.com/langchain-ai/langchain. Examples use placeholders only.

MCP support: MCP tools load through langchain-mcp-adapters, which converts MCP server tools into LangChain tools for LangChain and LangGraph agents.

Health and maintenance

GitHub stars

148,668

Checked 2026-10-29

GitHub forks

24,970

Checked 2026-10-29

Maintainer
LangChain Inc

Stars and forks read from the GitHub repository page in this run. PyPI showed langchain 1.4.7 in the 2026-10-29 check and 1.5.0 (released 2026-11-11) in the 2026-11-18 check.

Verified compatible tools

TavilyOfficial adapter package

Via langchain-tavily (TavilySearch, TavilyExtract, TavilyCrawl, TavilyMap). The LangChain Tavily provider page states the langchain-tavily package exposes Tavily Search, Extract, Crawl and Map endpoints as LangChain tools and requires TAVILY_API_KEY. Evidence. Setup detail

ExaOfficial adapter package

Via langchain-exa (ExaSearchResults, ExaFindSimilarResults, ExaSearchRetriever). The LangChain Exa provider page states the Exa integration exists in its own partner package, requires EXA_API_KEY, and provides a retriever and agent tools. Evidence. Setup detail

FirecrawlOfficial adapter package

Via langchain-firecrawl (FirecrawlScrape, FirecrawlCrawl, FirecrawlMap, FirecrawlExtract, FirecrawlSearch). The LangChain tool integrations index lists Firecrawl Search in its search tools table, and a fetched LangChain docs pull request describes the langchain-firecrawl package and its five tools. Evidence. Setup detail

PlaywrightOfficial adapter package

Via LangChain Playwright tool integration listed in the Python tool integrations index. The LangChain Python tool integrations index lists Playwright among the available tool integrations. Evidence. Setup detail

ComposioOfficial adapter package

Via Composio integration listed in the LangChain tool integrations index. The LangChain tool integrations index lists Composio under integration platforms, with 500 plus integrations, OAuth handling, and event-driven workflows. Evidence. Setup detail

LangSmithBuilt in by the framework vendor

Via LangSmith (same vendor LangChain ecosystem). The LangChain repository README lists LangSmith for agent evals, observability and debugging, and for developing, debugging and deploying AI agents and LLM applications. Evidence. Setup detail

Grouped view: tools for LangChain.

Sources and freshness

Checked 2026-10-29. Source-verified means the claims above trace to the listed sources; it does not mean AgentsUse ran the framework. Send corrections through the contact page. Back to the framework index.