ChatMemoryBuffer
(and some later fixes had it).When removing a message it needs to remove both assistant and tool messages, otherwise OpenAI will complain if the assistant role message required a tool, you delete the assistant message, and the tool message is orphan of it's assistant message.