Home / Class/ TestAnthropicStandard Class — langchain Architecture

TestAnthropicStandard Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  c952f0d9_fb94_db02_6b9b_a09e963a19d3["TestAnthropicStandard"]
  f4b40f56_1158_0e72_1cac_d0121e4eabd8["ChatModelUnitTests"]
  c952f0d9_fb94_db02_6b9b_a09e963a19d3 -->|extends| f4b40f56_1158_0e72_1cac_d0121e4eabd8
  57b52b3b_08ad_c744_35e6_97ebddb5fdb8["test_standard.py"]
  c952f0d9_fb94_db02_6b9b_a09e963a19d3 -->|defined in| 57b52b3b_08ad_c744_35e6_97ebddb5fdb8
  96b28181_bdb2_bddf_4859_5aaf2da81ebc["chat_model_class()"]
  c952f0d9_fb94_db02_6b9b_a09e963a19d3 -->|method| 96b28181_bdb2_bddf_4859_5aaf2da81ebc
  f692f20b_1909_66e9_9ae7_a53339a32aee["chat_model_params()"]
  c952f0d9_fb94_db02_6b9b_a09e963a19d3 -->|method| f692f20b_1909_66e9_9ae7_a53339a32aee
  e0f7cb50_0273_a3bc_fc5b_64462f25ee91["init_from_env_params()"]
  c952f0d9_fb94_db02_6b9b_a09e963a19d3 -->|method| e0f7cb50_0273_a3bc_fc5b_64462f25ee91

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/test_standard.py lines 13–30

class TestAnthropicStandard(ChatModelUnitTests):
    """Use the standard chat model unit tests against the `ChatAnthropic` class."""

    @property
    def chat_model_class(self) -> type[BaseChatModel]:
        return ChatAnthropic

    @property
    def chat_model_params(self) -> dict:
        return {"model": _MODEL}

    @property
    def init_from_env_params(self) -> tuple[dict, dict, dict]:
        return (
            {"ANTHROPIC_API_KEY": "test"},
            {"model": _MODEL},
            {"anthropic_api_key": "test"},
        )

Frequently Asked Questions

What is the TestAnthropicStandard class?
TestAnthropicStandard is a class in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/test_standard.py.
Where is TestAnthropicStandard defined?
TestAnthropicStandard is defined in libs/partners/anthropic/tests/unit_tests/test_standard.py at line 13.
What does TestAnthropicStandard extend?
TestAnthropicStandard extends ChatModelUnitTests.

Analyze Your Own Codebase

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

Try Supermodel Free