Home / Function/ test_effort_priority() — langchain Function Reference

test_effort_priority() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/test_chat_models.py lines 2128–2138

def test_effort_priority() -> None:
    """Test that top-level effort takes precedence over `output_config`."""
    model = ChatAnthropic(
        model="claude-opus-4-5-20251101",
        effort="high",
        output_config={"effort": "low"},
    )

    # Top-level effort should take precedence in the payload
    payload = model._get_request_payload("Test query")
    assert payload["output_config"]["effort"] == "high"

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free