Home / Function/ test_to_chatml_format_with_invalid_type() — langchain Function Reference

test_to_chatml_format_with_invalid_type() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c01f2266_31bd_9b81_b03f_3797b52064e9["test_to_chatml_format_with_invalid_type()"]
  ab3fd66d_3ad7_be56_7427_66f2c1a9d0a8["test_chat_models.py"]
  c01f2266_31bd_9b81_b03f_3797b52064e9 -->|defined in| ab3fd66d_3ad7_be56_7427_66f2c1a9d0a8
  style c01f2266_31bd_9b81_b03f_3797b52064e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/huggingface/tests/unit_tests/test_chat_models.py lines 130–134

def test_to_chatml_format_with_invalid_type(chat_hugging_face: Any) -> None:
    message = "Invalid message type"
    with pytest.raises(ValueError) as e:
        chat_hugging_face._to_chatml_format(message)
    assert "Unknown message type:" in str(e.value)

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free