test__convert_dict_to_message_system() — langchain Function Reference
Architecture documentation for the test__convert_dict_to_message_system() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 97a31cfe_88ad_b513_40ce_9af6e38f1aae["test__convert_dict_to_message_system()"] 48232d20_f8c1_b597_14fa_7dc407e9bfe5["test_base.py"] 97a31cfe_88ad_b513_40ce_9af6e38f1aae -->|defined in| 48232d20_f8c1_b597_14fa_7dc407e9bfe5 style 97a31cfe_88ad_b513_40ce_9af6e38f1aae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_base.py lines 206–211
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
Source
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/openai/tests/unit_tests/chat_models/test_base.py.
Where is test__convert_dict_to_message_system() defined?
test__convert_dict_to_message_system() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py at line 206.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free