← All recipes
Moderne licensed

Upgrade to LangChain 1.0

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

Migrate to LangChain 1.0 by applying all v0.2 migrations and then moving legacy functionality to langchain_classic.

Composite recipepython1.0langchainmigrationProprietary

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.UpgradeToLangChain1

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

mod config recipes pip install openrewrite-migrate-python

Definition

This recipe runs the following recipes in order.