docs: what langchain-cli migrate can do (#26547)

This commit is contained in:
Eugene Yurtsev 2024-09-16 16:10:40 -04:00 committed by GitHub
parent 724a53711b
commit 8a2f2fc30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,10 +213,16 @@ class FooParser(BaseOutputParser):
FooParser.model_rebuild()
```
## Migrate using langchain-cli
The `langchain-cli` can help migrate your code to new imports automatically. As of 0.0.31, the `langchain-cli` relies on [gritql](https://about.grit.io/) for applying code mods.
The `langchain-cli` can help update deprecated LangChain imports in your code automatically.
Please note that the `langchain-cli` only handles deprecated LangChain imports and cannot
help to upgrade your code from pydantic 1 to pydantic 2.
For help with the Pydantic 1 to 2 migration itself please refer to the [Pydantic Migration Guidelines](https://docs.pydantic.dev/latest/migration/).
As of 0.0.31, the `langchain-cli` relies on [gritql](https://about.grit.io/) for applying code mods.
## Installation