Home / Function/ test_convert_dict_to_message_system() — langchain Function Reference

test_convert_dict_to_message_system() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/xai/tests/unit_tests/test_chat_models.py lines 115–120

def test_convert_dict_to_message_system() -> None:
    message = {"role": "system", "content": "foo"}
    result = _convert_dict_to_message(message)
    expected_output = SystemMessage(content="foo")
    assert result == expected_output
    assert _convert_message_to_dict(expected_output) == message

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free