Skip to content

The agent engineering platform.

test(mistralai): add xfail for structured output test (#33119)

Mason Daugherty6d418ba983e3
diff --git a/libs/partners/mistralai/tests/integration_tests/test_standard.py b/libs/partners/mistralai/tests/integration_tests/test_standard.py
index 8c716c6528..ce67e0db4e 100644
--- a/libs/partners/mistralai/tests/integration_tests/test_standard.py
+++ b/libs/partners/mistralai/tests/integration_tests/test_standard.py
@@ -1,5 +1,6 @@
"""Standard LangChain interface tests."""
+import pytest
from langchain_core.language_models import BaseChatModel
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
ChatModelIntegrationTests, # type: ignore[import-not-found]
@@ -20,3 +21,7 @@ class TestMistralStandard(ChatModelIntegrationTests):
@property
def supports_json_mode(self) -> bool:
return True
+
+ @pytest.mark.xfail(reason=("MistralAI inconsistently fails to return valid fields"))
+ def test_structured_output_pydantic_2_v1(self, model: BaseChatModel) -> None:
+ super().test_structured_output_pydantic_2_v1(model)