Home / Class/ TestMistralStandard Class — langchain Architecture

TestMistralStandard Class — langchain Architecture

Architecture documentation for the TestMistralStandard class in test_standard.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d5767e29_bfdf_c08a_d568_aabe87363922["TestMistralStandard"]
  971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54
  1e48b348_a806_1102_1205_b0ec19332d4a["test_standard.py"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|defined in| 1e48b348_a806_1102_1205_b0ec19332d4a
  6ddefbe8_6c5c_aaa6_75b2_7a08b8030b89["chat_model_class()"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|method| 6ddefbe8_6c5c_aaa6_75b2_7a08b8030b89
  f0eaeb45_bfe2_a701_b965_0245385db7ca["chat_model_params()"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|method| f0eaeb45_bfe2_a701_b965_0245385db7ca
  ee22f066_7395_359e_2ccd_519223069373["supports_json_mode()"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|method| ee22f066_7395_359e_2ccd_519223069373
  c4ebaa82_064b_fe73_b3f6_dc1d6059c68b["test_structured_output_pydantic_2_v1()"]
  d5767e29_bfdf_c08a_d568_aabe87363922 -->|method| c4ebaa82_064b_fe73_b3f6_dc1d6059c68b

Relationship Graph

Source Code

libs/partners/mistralai/tests/integration_tests/test_standard.py lines 12–27

class TestMistralStandard(ChatModelIntegrationTests):
    @property
    def chat_model_class(self) -> type[BaseChatModel]:
        return ChatMistralAI

    @property
    def chat_model_params(self) -> dict:
        return {"model": "mistral-large-latest", "temperature": 0}

    @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)

Frequently Asked Questions

What is the TestMistralStandard class?
TestMistralStandard is a class in the langchain codebase, defined in libs/partners/mistralai/tests/integration_tests/test_standard.py.
Where is TestMistralStandard defined?
TestMistralStandard is defined in libs/partners/mistralai/tests/integration_tests/test_standard.py at line 12.
What does TestMistralStandard extend?
TestMistralStandard extends ChatModelIntegrationTests.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free