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