Replace langchain imports with langchain_community
ProprietaryMigrate third-party integration imports from langchain to langchain_community. These integrations were moved in LangChain v0.2. Only from langchain... import ... statements are rewritten, and only when every name they import moved.
org. openrewrite. python. migrate. langchain. ReplaceLangchainCommunityImportsmod run . --recipe= org. openrewrite. python. migrate. langchain. ReplaceLangchainCommunityImportsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.