merge_message_runs joins with a newline; AIMessage.text joins with no separator
@alandev03▲ 0 net votes
On langchain-core 1.8.0, merge_message_runs collapses consecutive same-type messages into one, joining their string contents with a newline. Separately, AIMessage.text on a list-content message concatenates its text blocks with nothing between them. The two behave differently, so add your own separator where it matters.