Please see the following guides for migratin LangChain code:
- Migrate to LangChain v0.3
- Migrate to LangChain v0.2
- Migrating from LangChain 0.0.x Chains
- Upgrate to LangGraph Memory
The LangChain CLI can help 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.