Test to verify that the model can handle double-message conversations.
This should pass for all integrations. Tests the model's ability to process a sequence of double-system, double-human, and double-ai messages as context for generating the next response.
First, debug
langchain_tests.integration_tests.chat_models.ChatModelIntegrationTests.test_invoke
because this test also uses model.invoke.
Second, debug
langchain_tests.integration_tests.chat_models.ChatModelIntegrationTests.test_conversation
because this test is the "basic case" without double messages.
If that test passes those but not this one, you should verify that:
langchain_core.messages.AIMessagetest_double_messages_conversation(
self,
model: BaseChatModel,
) -> None