Favicon of LangChain

LangChain

An MIT-licensed Python framework for AI agents and LLM apps, with model, tool and data integrations. LangChain.js serves JavaScript and TypeScript.

Screenshot of LangChain website

LangChain is an MIT-licensed open-source framework for developers building AI agents and applications powered by LLMs. It provides a shared interface for models, tools and data connections, so developers can change providers or test workflows without rebuilding the whole application.

The Python framework connects models to internal and external data through integrations for embeddings, vector stores and retrievers. Applications can use these components to ground answers in their own documents or let agents act through connected tools. LangChain.js provides an equivalent library for JavaScript and TypeScript.

Developers can start with agent templates and use lower-level components when they need more control. Related frameworks serve different needs: LangGraph provides controllable agent workflows, while Deep Agents adds planning, subagents and file system access for autonomous, long-running tasks.

LangChain integrates with LangSmith for monitoring, evaluation and debugging. LangSmith is a separate companion platform; its hosted deployment and operations features are distinct from the MIT-licensed framework. Applications use the model providers developers select.

Similar to LangChain