How to merge consecutive messages of the same type | 🦜️🔗 LangChain
Certain models do not support passing in consecutive messages of the same type (a.k.a. "runs" of the same message type).