Home / Function/ test_anthropic_model_params() — langchain Function Reference

test_anthropic_model_params() — langchain Function Reference

Architecture documentation for the test_anthropic_model_params() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  af52531f_e037_f589_4a4b_364f0a558a6d["test_anthropic_model_params()"]
  18428dc5_a41b_90c6_88ad_615296ee3311["test_chat_models.py"]
  af52531f_e037_f589_4a4b_364f0a558a6d -->|defined in| 18428dc5_a41b_90c6_88ad_615296ee3311
  style af52531f_e037_f589_4a4b_364f0a558a6d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/test_chat_models.py lines 1575–1588

def test_anthropic_model_params() -> None:
    llm = ChatAnthropic(model=MODEL_NAME)

    ls_params = llm._get_ls_params()
    assert ls_params == {
        "ls_provider": "anthropic",
        "ls_model_type": "chat",
        "ls_model_name": MODEL_NAME,
        "ls_max_tokens": 64000,
        "ls_temperature": None,
    }

    ls_params = llm._get_ls_params(model=MODEL_NAME)
    assert ls_params.get("ls_model_name") == MODEL_NAME

Domain

Subdomains

Frequently Asked Questions

What does test_anthropic_model_params() do?
test_anthropic_model_params() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/test_chat_models.py.
Where is test_anthropic_model_params() defined?
test_anthropic_model_params() is defined in libs/partners/anthropic/tests/unit_tests/test_chat_models.py at line 1575.

Analyze Your Own Codebase

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

Try Supermodel Free