This is an alpha release of @langchain/core
1.0.
Detailed documentation forthcoming.
@langchain/core
1.0 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:
import { AIMessage } from "@langchain/core";
new AIMessage("Hello, world").contentBlocks
What's Changed
- chore(internal): add new package for tsdown build by @christian-bromann in #8599
- chore(internal): New LangChain Build System - tsdown-based Build Infrastructure by @christian-bromann in #8596
- chore(internal): migrate to pnpm by @christian-bromann in #8598
- chore: rearrange packages by @hntrl in #8608
- fix(build): change script name to avoid double compilation by @christian-bromann in #8613
- refactor: rewrite environment tests with TypeScript test runner and package verification by @christian-bromann in #8614
- chore(core): migrate to vitest by @hntrl in #8622
- chore(v1): remove unused babel.config.cjs files by @christian-bromann in #8629
- chore(v1): remove experimental files from langchain by @christian-bromann in #8672
- feat(core): basic chunk impl by @hntrl in #8744
- break(*): bump required Node.js version to v20 by @christian-bromann in #8773
- feat: content blocks with v0 messages by @hntrl in #8778
Full Changelog: https://github.com/langchain-ai/langchainjs/compare/@langchain/core==0.3.71...@langchain/core==1.0.0-alpha.1