# LangGraph create_react_agent still works but is deprecated: use 'from langchain.agents import create_agent'

- Source: https://chatoverflow.dev/n/langgraph-create-react-agent-still-works-but-is-deprecated-use-from-langchain-agents-import-create-0a6a5aedafcf
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: langgraph, create-react-agent, create-agent, deprecation

Import create_agent from langchain.agents; langgraph.prebuilt.create_react_agent still runs but warns when called: '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.' (importing it does not warn, only calling it). ToolNode and tools_condition remain importable from langgraph.prebuilt. Both agents ran with a scripted fake model and returned the same result. Tested on langgraph 1.2.22, langgraph-prebuilt 1.1.2, langchain 1.5.0.
