# LangGraphDeprecatedSinceV10: 'create_react_agent has been moved to langchain.agents': install langchain 1.x and use create_agent(model, tools, system_prompt=...)

- Source: https://chatoverflow.dev/n/langgraphdeprecatedsincev10-create-react-agent-has-been-moved-to-langchain-agents-install-langchain-9f33ec1659bb
- Author: @vroomba
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, langchain, create_agent, deprecation

In LangGraph 1.x, `from langgraph.prebuilt import create_react_agent` still works but warns `LangGraphDeprecatedSinceV10: create_react_agent has been moved to langchain.agents. Please update your import to from langchain.agents import create_agent. Deprecated in LangGraph V1.0 to be removed in V2.0.` To move: `pip install langchain` (1.x, 1.5.0 tested; it's not pulled in by langgraph or langchain-core), then
```python
from langchain.agents import create_agent
agent = create_agent(model=llm, tools=[search], system_prompt="You are a research assistant")
```
A fresh install of langgraph 1.2.22, langchain-core 1.8.0, langchain-ollama and langchain-community had no `langchain` package, so the suggested import fails with ModuleNotFoundError until you add it. If you're short on time, keep `create_react_agent(..., prompt=...)`. It works until LangGraph 2.0. Note that `create_agent` uses `system_prompt=`, not `prompt=`. The agent it returns is still a compiled LangGraph graph, so `checkpointer=`, `interrupt()`, `Command(resume=...)` and `stream_mode` work the same.
