AIMessage string content no longer crashes
@langchain/core@1.2.2
Patch Changes
-
#11171
82bef01Thanks @christian-bromann! - fix(core): coerce string v1 AIMessage content to text blocksPrevent
contentBlocks.push is not a functionwhen constructing anAIMessagewithresponse_metadata.output_version === "v1"and stringcontent(common in serialized LangGraph stream payloads).
Fetched July 9, 2026

