releases.shpreview

AIMessage string content no longer crashes

@langchain/core@1.2.2

1 fixThis release1 fixBug fixesAI-tallied from the release notes

Patch Changes

  • #11171 82bef01 Thanks @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).

Fetched July 9, 2026