Framework · LangChain Inc.
LangGraph at a glance
LangChain's low-level library for agents built as explicit graphs, with checkpointed state and interrupts at its core. LangChain v1's create_agent runs on top of it for when a prebuilt loop is enough.
Best for: Long-running, stateful agents where you want to control every step and resume after failures.
Key facts
- Maintainer
- LangChain Inc.
- Languages
- Python, TypeScript, JavaScript
- Licence
- MIT
- Latest version
langgraph 1.2.12 / langchain 1.4.3· September 28, 2026- Repository
- langchain-ai/langgraph
- Hosted option
- LangSmith Deployment (formerly LangGraph Platform)
Quickstart
Install the package, set the credentials, then run the smallest agent from the official docs. Model IDs are the ones the docs use and may not be enabled on your account.
Python (LangChain create_agent)
pip install -U langchainfrom langchain.agents import create_agent
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_agent(
model="openai:gpt-5.5",
tools=[get_weather],
system_prompt="You are a helpful assistant",
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "What's the weather in San Francisco?"}]}
)
print(result["messages"][-1].content_blocks)Python (raw LangGraph)
pip install -U langgraphfrom langgraph.graph import StateGraph, MessagesState, START, END
def mock_llm(state: MessagesState):
return {"messages": [{"role": "ai", "content": "hello world"}]}
graph = StateGraph(MessagesState)
graph.add_node(mock_llm)
graph.add_edge(START, "mock_llm")
graph.add_edge("mock_llm", END)
graph = graph.compile()
graph.invoke({"messages": [{"role": "user", "content": "hi!"}]})Features
| Any model | Yes | |
|---|---|---|
| MCP client | Yes | Via langchain-mcp-adapters |
| MCP server | Not confirmed | |
| Multi-agent | Yes | Subgraphs; the Deep Agents harness adds subagents |
| Durable runs | Yes | Checkpointers for Postgres or SQLite; resume after failures |
| Human approval | Yes | Interrupts let you inspect and edit state mid-run |
| Tracing | Yes | Via LangSmith, with LANGSMITH_TRACING=true |
| Evals | No | Evaluation lives in LangSmith, not the open-source library |
Recent changes
- LangChain v1 agents (create_agent) are now built on LangGraph.
- LangGraph Platform was renamed LangSmith Deployment.
- Deep Agents, a harness on top of LangGraph, adds subagents.