Skip to content

Conversation

@code-with-rashid
Copy link

The langgraph.prebuilt.create_react_agent import and its prompt= argument were officially deprecated in LangGraph(November 2025). The recommended and maintained path forward is now langchain.agents.create_agent.

This PR updates the primary quickstart example in the README to:

  • Use from langchain.agents import create_agent
  • Replace deprecated prompt= with correct system_prompt=

The example remains functionally identical (still prints "It's always sunny in sf!") but now reflects current best practices and works out-of-the-box with the latest versions of langchain and langgraph.

The langgraph.prebuilt.create_react_agent import and API were deprecated in LangGraph.
Replace it with the current, maintained langchain.agents.create_agent.

Also update the deprecated `prompt=` argument to the correct `system_prompt=` parameter.
@vercel
Copy link

vercel bot commented Nov 24, 2025

Someone is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant