Summary of changes
LangGraph v1 is largely backwards compatible with previous versions. The main change is the deprecation ofcreate_react_agent in favor of LangChain’s new create_agent function.
Deprecations
The following table lists all items deprecated in LangGraph v1:| Deprecated item | Alternative |
|---|---|
create_react_agent | langchain.agents.create_agent |
AgentState | langchain.agents.AgentState |
AgentStatePydantic | langchain.agents.AgentState (no more pydantic state) |
AgentStateWithStructuredResponse | langchain.agents.AgentState |
AgentStateWithStructuredResponsePydantic | langchain.agents.AgentState (no more pydantic state) |
HumanInterruptConfig | langchain.agents.middleware.human_in_the_loop.InterruptOnConfig |
ActionRequest | langchain.agents.middleware.human_in_the_loop.InterruptOnConfig |
HumanInterrupt | langchain.agents.middleware.human_in_the_loop.HITLRequest |
ValidationNode | Tools automatically validate input with create_agent |
MessageGraph | StateGraph with a messages key, like create_agent provides |
create_react_agent → create_agent
LangGraph v1 deprecates the create_react_agent prebuilt. Use LangChain’s create_agent, which runs on LangGraph and adds a flexible middleware system.
See the LangChain v1 docs for details: