Skip to content
masterclassBuddyTech Buzz5 fresh blogs · 5:00 AM IST

AI & agents

What is the difference among LangChain, LangGraph and LangSmith?

LangChain is the agent framework, LangGraph is the orchestration runtime underneath it, and LangSmith is the platform that traces, evaluates and deploys what you build with either.

Technologies
3
Difference questions
50

What each one is

LangChain

An open-source agent framework with standard interfaces to models, tools and agent loops.

Its create_agent gives a configurable harness: prompt, tools and middleware around the model loop. Start here for most agents.

LangGraph

A low-level orchestration framework and runtime for long-running, stateful agents.

It models work as a graph of nodes and edges with durable execution, streaming, human-in-the-loop and persistence. LangChain's create_agent runs on it.

LangSmith

A platform for tracing, evaluation, prompts and deployment across frameworks.

It records every run, scores quality with datasets and evaluators, and hosts agents. It works with LangChain, LangGraph or neither.

Sourced from Docs by LangChain (MCP)

At a glance

AspectLangChainLangGraphLangSmith
RoleAgent frameworkOrchestration runtimeObservability & evaluation platform
LevelHigh-levelLow-levelPlatform / service
Typical codecreate_agent(model, tools)StateGraph, nodes, edgesTracing env vars, evaluate()
Open sourceYesYesSDKs yes; platform is a service
Use whenBuilding a standard agent fastCustom control flow, durability, approvalsDebugging, testing and monitoring LLM apps

The 10 most-asked difference questions

Subjective questions 10

1In one sentence each, what are LangChain, LangGraph and LangSmith?Asked almost every time

LangChain is the agent framework with standard interfaces to models, tools and agent loops; LangGraph is the low-level orchestration runtime for long-running, stateful agents; LangSmith is the platform for tracing, evaluation, prompts and deployment across frameworks.

2Do you need LangChain to use LangGraph?Asked almost every time

No. LangGraph can orchestrate any Python or TypeScript code, including direct SDK calls to model providers. The docs often use LangChain components for models and tools because it is convenient, but LangGraph does not require it.

3How are LangChain's create_agent and LangGraph related?Asked almost every time

LangChain v1's create_agent is built on LangGraph, so an agent created with it already runs on the LangGraph runtime and gets its persistence and streaming. You start high-level with create_agent and drop down to a custom LangGraph graph when you need more control.

4When would you choose LangGraph over LangChain's create_agent?Asked almost every time

When you need fine-grained control of the control flow: custom branches and loops, deterministic steps mixed with LLM steps, durable execution for long-running work, human approval at specific points, or multi-agent graphs. For a standard tool-calling agent, create_agent is simpler.

5Does LangSmith only work with LangChain and LangGraph?Asked almost every time

No. LangSmith traces, evaluates and monitors LLM applications built with any framework or none, through its SDK, the traceable decorator, wrappers for provider clients and OpenTelemetry. It integrates most deeply with LangChain and LangGraph, which trace automatically when the environment variables are set.

6Which of the three is open source and which is a hosted product?Asked almost every time

LangChain and LangGraph are open-source libraries for Python and TypeScript. LangSmith is a platform: its SDKs are open source, but the tracing, evaluation and deployment service is a hosted product, with self-hosted options for enterprises.

7What does 'durable execution' mean in LangGraph and why does LangChain alone not give it?Very often asked

LangGraph saves checkpoints of the graph state at each step to a checkpointer, so a run can pause, survive a crash or deploy and resume from the last checkpoint. A plain chain or loop has no saved state between steps, so a failure means starting over.

8How does human-in-the-loop differ between LangChain and LangGraph?Very often asked

LangGraph provides interrupt() to pause a graph and Command(resume=...) to continue it on the same thread. LangChain exposes the same capability for create_agent through human-in-the-loop middleware that pauses tool calls for approval, which runs on LangGraph underneath.

9Where does state live in each of the three?Very often asked

In LangChain's create_agent, state is the agent's message list plus any custom fields, persisted by a checkpointer when you add one. In LangGraph, you define the state schema and reducers yourself and checkpointers store it per thread. LangSmith does not hold application state; it stores traces, datasets and feedback.

10How would you describe the 'level of abstraction' of each tool?Very often asked

LangChain is high-level: prebuilt agent loops, middleware and integrations. LangGraph is low-level: you describe nodes, edges and state, and it runs them reliably. LangSmith sits outside the code as a platform that observes and evaluates whatever you built.

See all 50 difference questions with answers in your dashboard →

Practise every comparison in your dashboard.

Start learning