test_anthropic_model_params() — langchain Function Reference
Architecture documentation for the test_anthropic_model_params() function in test_llms.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 18591ab9_1f1e_d70a_646e_48acb5f3edf8["test_anthropic_model_params()"] a04a3899_3148_06be_27cb_f513a509c515["test_llms.py"] 18591ab9_1f1e_d70a_646e_48acb5f3edf8 -->|defined in| a04a3899_3148_06be_27cb_f513a509c515 style 18591ab9_1f1e_d70a_646e_48acb5f3edf8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/test_llms.py lines 8–29
def test_anthropic_model_params() -> None:
# Test standard tracing params
llm = AnthropicLLM(model="foo") # type: ignore[call-arg]
ls_params = llm._get_ls_params()
assert ls_params == {
"ls_provider": "anthropic",
"ls_model_type": "llm",
"ls_model_name": "foo",
"ls_max_tokens": 1024,
}
llm = AnthropicLLM(model="foo", temperature=0.1) # type: ignore[call-arg]
ls_params = llm._get_ls_params()
assert ls_params == {
"ls_provider": "anthropic",
"ls_model_type": "llm",
"ls_model_name": "foo",
"ls_max_tokens": 1024,
"ls_temperature": 0.1,
}
Domain
Subdomains
Source
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_llms.py.
Where is test_anthropic_model_params() defined?
test_anthropic_model_params() is defined in libs/partners/anthropic/tests/unit_tests/test_llms.py at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free