← All recipes
Moderne licensed

Find deprecated LangChain agent patterns

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

Find usage of deprecated LangChain agent patterns including initialize_agent, AgentExecutor, and LLMChain. These were deprecated in LangChain v0.2 and removed in v1.0.

Single 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.FindDeprecatedLangchainAgents

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

mod config recipes pip install openrewrite-migrate-python