Skip to content

Commit cc39f56

Browse files
chore: version packages (#11172)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @langchain/core@1.2.2 ### Patch Changes - [#11171](#11171) [`82bef01`](82bef01) Thanks [@christian-bromann](https://github.com/christian-bromann)! - fix(core): coerce string v1 AIMessage content to text blocks Prevent `contentBlocks.push is not a function` when constructing an `AIMessage` with `response_metadata.output_version === "v1"` and string `content` (common in serialized LangGraph stream payloads). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 82bef01 commit cc39f56

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

.changeset/fix-aimessage-v1-string-content.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

libs/langchain-core/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @langchain/core
22

3+
## 1.2.2
4+
5+
### Patch Changes
6+
7+
- [#11171](https://github.com/langchain-ai/langchainjs/pull/11171) [`82bef01`](https://github.com/langchain-ai/langchainjs/commit/82bef01ad3dd5e0317e48da40707be6bccc52f94) Thanks [@christian-bromann](https://github.com/christian-bromann)! - fix(core): coerce string v1 AIMessage content to text blocks
8+
9+
Prevent `contentBlocks.push is not a function` when constructing an
10+
`AIMessage` with `response_metadata.output_version === "v1"` and string
11+
`content` (common in serialized LangGraph stream payloads).
12+
313
## 1.2.1
414

515
### Patch Changes

libs/langchain-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@langchain/core",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Core LangChain.js abstractions and schemas",
55
"type": "module",
66
"engines": {

0 commit comments

Comments
 (0)