Find deprecated LangChain agent patterns

Proprietary

Find usage of deprecated LangChain agent patterns including initialize_agent, AgentExecutor, and LLMChain. These were deprecated in LangChain v0.2 and moved out of langchain into langchain_classic in v1.0. Only from langchain... import ... statements are marked.

org.openrewrite.python.migrate.langchain.FindDeprecatedLangchainAgents
mod run . --recipe=org.openrewrite.python.migrate.langchain.FindDeprecatedLangchainAgents

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.