Test to verify that the model can handle multi-turn conversations.
This should pass for all integrations. Tests the model's ability to process
a sequence of alternating HumanMessage and AIMessage objects 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.
If that test passes but not this one, you should verify that:
langchain_core.messages.AIMessagetest_conversation(
self,
model: BaseChatModel,
) -> None