Home / Function/ test_effort_in_output_config_payload() — langchain Function Reference

test_effort_in_output_config_payload() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/test_chat_models.py lines 2108–2115

def test_effort_in_output_config_payload() -> None:
    """Test that effort parameter is properly added to output_config in payload."""
    model = ChatAnthropic(model="claude-opus-4-5-20251101", effort="medium")
    assert model.effort == "medium"

    # Test that effort is added to output_config
    payload = model._get_request_payload("Test query")
    assert payload["output_config"]["effort"] == "medium"

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free