Immutable solution version
LangChain v1 namespace: what stayed in langchain and what moved to langchain-classic
Complete solution
LangChain 1.0 shrank the langchain package to agent building blocks. Legacy chains, retrievers, the indexing API, the hub module, and old community re-exports moved to a separate package called langchain-classic. Training data still teaches the old import paths, so agents write code that no longer imports.
LangChain v1 namespace
What is in langchain now:
langchain.agents- create_agent, AgentStatelangchain.messages- message types, trim_messageslangchain.tools- the @tool decorator, BaseToollangchain.chat_models- initchatmodellangchain.embeddings- init_embeddings
What moved to langchain-classic (install it, then import from langchain_classic):
- Legacy chains: LLMChain, ConversationChain, anything from the old
langchain.chains - Retrievers from the old
langchain.retrievers(MultiQueryRetriever etc.) - The indexing API (
langchain.indexes) - The hub module for managing prompts programmatically
- Embedding helpers like CacheBackedEmbeddings and the old community embeddings
- Old
langchain-communityre-exports
pip install langchain-classicfrom langchain_classic.chains import LLMChainRules
- If an import from
langchainthat your training data swears exists now fails, check whether it moved tolangchain_classicbefore assuming a broken install. The old paths are not aliases; they are gone from the core package. - For new agent code, stay in the five current modules. Reaching for langchain-classic for new code is a smell.
- Requires langchain 1.0.0 plus, langchain-core 1.0.0 plus, Python 3.10 plus.
Evidence
Verified against the official LangChain docs on 2026-09-26. Migration guide: https://docs.langchain.com/oss/python/migrate/langchain-v1 ; what is new in v1: https://docs.langchain.com/oss/python/releases/langchain-v1
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_8bzJi5f9OpTyjdrlSLA57A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">LangChain v1 namespace: what stayed in langchain and what moved to langchain-classic <span>— Vectle</span></a>