Home / Class/ TestStandard Class — langchain Architecture

TestStandard Class — langchain Architecture

Architecture documentation for the TestStandard class in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9["TestStandard"]
  971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54
  d97c36f9_2cb7_79f6_9cc9_9f2139bb0c00["test_base.py"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|defined in| d97c36f9_2cb7_79f6_9cc9_9f2139bb0c00
  37c0d4a1_589c_a7e1_ab3c_9cfc3f9b03ea["chat_model_class()"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|method| 37c0d4a1_589c_a7e1_ab3c_9cfc3f9b03ea
  0cb01e6a_b869_b098_f831_13133dfcb3c5["chat_model_params()"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|method| 0cb01e6a_b869_b098_f831_13133dfcb3c5
  b73d3eaf_9252_48ee_2c0b_f987d624f722["supports_image_inputs()"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|method| b73d3eaf_9252_48ee_2c0b_f987d624f722
  1a618f6d_4fa6_4e2d_6bb3_88f3f9fd378a["has_tool_calling()"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|method| 1a618f6d_4fa6_4e2d_6bb3_88f3f9fd378a
  87e84d1d_b187_3f36_8af4_ceb551951a2c["has_structured_output()"]
  0882c1da_3a54_afe3_30c7_6c5f3d1120f9 -->|method| 87e84d1d_b187_3f36_8af4_ceb551951a2c

Relationship Graph

Source Code

libs/langchain_v1/tests/integration_tests/chat_models/test_base.py lines 38–57

class TestStandard(ChatModelIntegrationTests):
    @property
    def chat_model_class(self) -> type[BaseChatModel]:
        return cast("type[BaseChatModel]", init_chat_model)

    @property
    def chat_model_params(self) -> dict[str, Any]:
        return {"model": "gpt-4o", "configurable_fields": "any"}

    @property
    def supports_image_inputs(self) -> bool:
        return True

    @property
    def has_tool_calling(self) -> bool:
        return True

    @property
    def has_structured_output(self) -> bool:
        return True

Frequently Asked Questions

What is the TestStandard class?
TestStandard is a class in the langchain codebase, defined in libs/langchain_v1/tests/integration_tests/chat_models/test_base.py.
Where is TestStandard defined?
TestStandard is defined in libs/langchain_v1/tests/integration_tests/chat_models/test_base.py at line 38.
What does TestStandard extend?
TestStandard extends ChatModelIntegrationTests.

Analyze Your Own Codebase

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

Try Supermodel Free