Home / Function/ test_model_profiles() — langchain Function Reference

test_model_profiles() — langchain Function Reference

Architecture documentation for the test_model_profiles() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f3e8114c_c294_cb78_a3b5_731cebf25ca7["test_model_profiles()"]
  8cb88ac4_61d9_baf3_9df4_9b3f5095927e["test_base.py"]
  f3e8114c_c294_cb78_a3b5_731cebf25ca7 -->|defined in| 8cb88ac4_61d9_baf3_9df4_9b3f5095927e
  style f3e8114c_c294_cb78_a3b5_731cebf25ca7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/language_models/chat_models/test_base.py lines 1216–1223

def test_model_profiles() -> None:
    model = GenericFakeChatModel(messages=iter([]))
    assert model.profile is None

    model_with_profile = GenericFakeChatModel(
        messages=iter([]), profile={"max_input_tokens": 100}
    )
    assert model_with_profile.profile == {"max_input_tokens": 100}

Domain

Subdomains

Frequently Asked Questions

What does test_model_profiles() do?
test_model_profiles() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py.
Where is test_model_profiles() defined?
test_model_profiles() is defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py at line 1216.

Analyze Your Own Codebase

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

Try Supermodel Free