test_convert_dict_to_message_human() — langchain Function Reference
Architecture documentation for the test_convert_dict_to_message_human() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9e5bf008_55bd_9e89_b36a_957e4972ac3f["test_convert_dict_to_message_human()"] d3aa2dec_5fef_73c8_892f_691289c5feaf["test_chat_models.py"] 9e5bf008_55bd_9e89_b36a_957e4972ac3f -->|defined in| d3aa2dec_5fef_73c8_892f_691289c5feaf style 9e5bf008_55bd_9e89_b36a_957e4972ac3f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/xai/tests/unit_tests/test_chat_models.py lines 83–88
def test_convert_dict_to_message_human() -> None:
message = {"role": "user", "content": "foo"}
result = _convert_dict_to_message(message)
expected_output = HumanMessage(content="foo")
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_human() do?
test_convert_dict_to_message_human() 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_human() defined?
test_convert_dict_to_message_human() is defined in libs/partners/xai/tests/unit_tests/test_chat_models.py at line 83.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free