test_standard.py — langchain Source File
Architecture documentation for test_standard.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fb8aa5dd_92d0_48ce_c039_672ac4962452["test_standard.py"] 120e2591_3e15_b895_72b6_cb26195e40a6["pytest"] fb8aa5dd_92d0_48ce_c039_672ac4962452 --> 120e2591_3e15_b895_72b6_cb26195e40a6 ba43b74d_3099_7e1c_aac3_cf594720469e["langchain_core.language_models"] fb8aa5dd_92d0_48ce_c039_672ac4962452 --> ba43b74d_3099_7e1c_aac3_cf594720469e 8f882798_3f47_fa1f_5253_3b7193f357a9["langchain_tests.integration_tests"] fb8aa5dd_92d0_48ce_c039_672ac4962452 --> 8f882798_3f47_fa1f_5253_3b7193f357a9 7ee113fe_bef7_37b4_1846_b866af39d1c0["langchain_mistralai"] fb8aa5dd_92d0_48ce_c039_672ac4962452 --> 7ee113fe_bef7_37b4_1846_b866af39d1c0 style fb8aa5dd_92d0_48ce_c039_672ac4962452 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""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]
)
from langchain_mistralai import ChatMistralAI
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)
Domain
Subdomains
Classes
Dependencies
- langchain_core.language_models
- langchain_mistralai
- langchain_tests.integration_tests
- pytest
Source
Frequently Asked Questions
What does test_standard.py do?
test_standard.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, MessageSchema subdomain.
What does test_standard.py depend on?
test_standard.py imports 4 module(s): langchain_core.language_models, langchain_mistralai, langchain_tests.integration_tests, pytest.
Where is test_standard.py in the architecture?
test_standard.py is located at libs/partners/mistralai/tests/integration_tests/test_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/mistralai/tests/integration_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free