Please see the following guides for migrating LangChain code:
- Migrate to LangChain v0.3
- Migrate to LangChain v0.2
- Migrating from LangChain 0.0.x Chains
- Upgrade to LangGraph Memory
The LangChain CLI can help you automatically upgrade your code to use non-deprecated imports. This will be especially helpful if you're still on either version 0.0.x or 0.1.x of LangChain.