> So the issue was in the appearance of role "tool" after role "user", not in the message object its

So the issue was in the appearance of role "tool" after role "user", not in the message object itself? Alright, I guess.

Supposedly, yes. Although it's not obvious to me what you would do differently. Searching for that error message comes up with similar github issues though: https://github.com/langchain-ai/langchain/issues/22928
Was this page helpful?