Agent frameworks · ranked 07
LangChain
The original LLM application framework, plus a hosted LangSmith side.
Best for A general LLM app framework with a huge ecosystem
LangChain is an open-source framework for building applications on language models, with Python and JavaScript libraries. Chains, tools, and retrieval are the core ideas. LangSmith is the hosted sibling for tracing. Use the library when you want the ecosystem. Use LangGraph, in this directory, when the thing you are building is a stateful agent.
Best use cases
- Retrieval and tool-calling prototypes
- Python or JavaScript services that call models
- Teams that already have LangChain examples in the repo
Pros
- + The library is open source
- + Docs, integrations, and examples are everywhere
- + Python and JavaScript both exist
Cons
- − The abstraction surface is large for a weekend agent
- − Hosted LangSmith pricing, if you use it: check site
Pricing
The library is open source. LangSmith and other hosted products: check site.
Alternatives
Agent frameworks
7.3
LangGraph
Graph-shaped agents with state, from the LangChain team.
Best for Agents that are workflows, not a single loop
Agent frameworks
7.0
LlamaIndex
A data framework for connecting documents and models.
Best for Retrieval over your own documents
Agent frameworks
8.0
Mastra
TypeScript framework for agents, workflows, and evals.
Best for TypeScript agents you keep in your repo