test_convert_dict_to_message_system_with_name() — langchain Function Reference
Architecture documentation for the test_convert_dict_to_message_system_with_name() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d13c4611_8754_eb5a_e29d_bde8048c642d["test_convert_dict_to_message_system_with_name()"] d3aa2dec_5fef_73c8_892f_691289c5feaf["test_chat_models.py"] d13c4611_8754_eb5a_e29d_bde8048c642d -->|defined in| d3aa2dec_5fef_73c8_892f_691289c5feaf style d13c4611_8754_eb5a_e29d_bde8048c642d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/xai/tests/unit_tests/test_chat_models.py lines 123–128
def test_convert_dict_to_message_system_with_name() -> None:
message = {"role": "system", "content": "foo", "name": "test"}
result = _convert_dict_to_message(message)
expected_output = SystemMessage(content="foo", name="test")
assert result == expected_output
assert _convert_message_to_dict(expected_output) == message
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_dict_to_message_system_with_name() do?
test_convert_dict_to_message_system_with_name() 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_with_name() defined?
test_convert_dict_to_message_system_with_name() is defined in libs/partners/xai/tests/unit_tests/test_chat_models.py at line 123.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free