Skip to content

The agent engineering platform.

cli[patch]: Update the migration script message (#26490)

Eugene Yurtsev77ccb4b1cff0
diff --git a/libs/cli/langchain_cli/namespaces/migrate/main.py b/libs/cli/langchain_cli/namespaces/migrate/main.py
index b4d8e69a2d..019366878c 100644
--- a/libs/cli/langchain_cli/namespaces/migrate/main.py
+++ b/libs/cli/langchain_cli/namespaces/migrate/main.py
@@ -21,9 +21,11 @@ def migrate(
Any undocumented arguments will be passed to the Grit CLI.
"""
rich.print(
- "✈️ This script will help you migrate to a recent version LangChain. "
+ "✈️ This script will help you migrate to a LangChain 0.3. "
"This migration script will attempt to replace old imports in the code "
- "with new ones.\n\n"
+ "with new ones. "
+ "If you need to migrate to LangChain 0.2, please downgrade to version 0.0.29 "
+ "of the langchain-cli.\n\n"
"🔄 You will need to run the migration script TWICE to migrate (e.g., "
"to update llms import from langchain, the script will first move them to "
"corresponding imports from the community package, and on the second "