Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the v0 LangChain Python or LangChain JavaScript docs.
1.0 Alpha releases are available for the following packages:
langchain
@langchain/core
@langchain/anthropic
@langchain/openai
New features
Core exports from langchain
The langchain
package now exports key primitives like tool
, message types, ToolNode
, createAgent
, and more directly from the root package.
createAgent
in core langchain
The React-style agent is now part of the core langchain
project. Import directly from langchain
:
@langchain/openai
for openai:gpt-4o-mini
).
ToolNode
exported from langchain
Build agent graphs that execute tools as a node. This makes tool execution composable within graph workflows.
Default tool-error handling in agents
WhenhandleToolErrors
is true
(default), tool exceptions are caught and converted into a ToolMessage
so the agent can recover. Set it to false
to surface raw errors for strict workflows.
Standard typed message content
@langchain/core
features standard, typed message content. This includes standard types for reasoning, citations, server-side tool calls, and other modern LLM features.
There are no breaking changes associated with existing message content. The standard content can be lazily-parsed off of existing v0 messages using the contentBlocks
property:
Breaking changes
Require Node.js ≥ 20
Require Node.js ≥ 20
LangChain packages now require Node 20+. Update your engines and CI accordingly.
Removed legacy subpath exports
Removed legacy subpath exports
Several legacy export paths have been removed to create a cleaner surface area:All
langchain/schema/*
exports removedlangchain/schema/prompt_template
→ uselangchain/prompts
langchain/schema/query_constructor
→ uselangchain/chains/query_constructor
langchain/runnables/remote
export removedIf you used this entrypoint, migrate off this subpath (no 1:1 replacement export in langchain
package).langchain/smith
export path removedUse the separate langsmith
package and opt-in (see fixes section below).Prebuilt Callbacks removed from `langchain`
Prebuilt Callbacks removed from `langchain`
The
./callbacks
entrypoint is gone. Prefer LCEL observability (runnables), agent/tool messages, or provider-native hooks instead.Agents imports removed from `langchain`
Agents imports removed from `langchain`
All
./agents
imports have been removed from the langchain
package. There is no direct replacement - use createAgent
instead for building agents.Removed `@langchain/azure-openai` package
Removed `@langchain/azure-openai` package
The entire
@langchain/azure-openai
package has been removed as all its primitives were deprecated.Migration: Use @langchain/openai
with Azure OpenAI configuration instead:Migration guide
Follow these steps to migrate your JavaScript/TypeScript code to LangChain v1.0:1. Node version
Setengines.node
to >=20
and update CI runners:
2. Import path updates
Alllangchain/schema/*
exports removed:
3. Agent migration
Replace legacy agent imports withcreateAgent
:
model
as a model name string to createAgent
. This requires you to have the specific model provider package installed (e.g. @langchain/openai
for openai:gpt-4o-mini
).
Use ToolNode
to encapsulate tool execution in graphs:
4. Error handling configuration
Decide on error policy forToolNode
:
Reporting issues
Please report any issues discovered with 1.0 on GitHub using the'v1'
label.
See also
- Versioning - Understanding version numbers
- Release policy - Detailed release policies