Skip to content

The agent engineering platform.

langchain.agents: corrected documentation (#28986)

Hrishikesh Kalola437ec53e29cd
diff --git a/libs/langchain/langchain/_api/deprecation.py b/libs/langchain/langchain/_api/deprecation.py
index ecd5a71b89..6d5f2cf689 100644
--- a/libs/langchain/langchain/_api/deprecation.py
+++ b/libs/langchain/langchain/_api/deprecation.py
@@ -11,11 +11,13 @@ AGENT_DEPRECATION_WARNING = (
"LangChain agents will continue to be supported, but it is recommended for new "
"use cases to be built with LangGraph. LangGraph offers a more flexible and "
"full-featured framework for building agents, including support for "
- "tool-calling, persistence of state, and human-in-the-loop workflows. See "
- "LangGraph documentation for more details: "
- "https://langchain-ai.github.io/langgraph/. Refer here for its pre-built "
- "ReAct agent: "
- "https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/"
+ "tool-calling, persistence of state, and human-in-the-loop workflows. For "
+ "details, refer to the "
+ "`LangGraph documentation <https://langchain-ai.github.io/langgraph/>`_"
+ " as well as guides for "
+ "`Migrating from AgentExecutor <https://python.langchain.com/docs/how_to/migrate_agent/>`_" # noqa: E501
+ " and LangGraph's "
+ "`Pre-built ReAct agent <https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/>`_." # noqa: E501
)