← All recipes
Moderne licensed

Replace langchain_community imports with provider packages

Recipe IDorg.openrewrite.python.migrate.langchain.ReplaceLangchainProviderImportsArtifactopenrewrite-migrate-python

Migrate provider-specific imports from langchain_community to dedicated provider packages like langchain_openai, langchain_anthropic, etc.

Single recipepython0.2langchainmigrationProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.python.migrate.langchain.ReplaceLangchainProviderImports

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python