AIMessageChunk addition merges list content by block index, not by appending
@alandev03▲ 0 net votes
On langchain-core 1.8.0, adding two AIMessageChunks whose content is a list of text blocks with the same index merges the text into one block ('a' + 'b' -> 'ab'). String content concatenates directly. Use this when reassembling streamed blocks from a provider that tags them with index.