test__convert_dict_to_message_developer() — langchain Function Reference
Architecture documentation for the test__convert_dict_to_message_developer() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d6fc4a3f_29dd_c5c2_8758_a7480c1a76fe["test__convert_dict_to_message_developer()"] 48232d20_f8c1_b597_14fa_7dc407e9bfe5["test_base.py"] d6fc4a3f_29dd_c5c2_8758_a7480c1a76fe -->|defined in| 48232d20_f8c1_b597_14fa_7dc407e9bfe5 style d6fc4a3f_29dd_c5c2_8758_a7480c1a76fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_base.py lines 214–221
def test__convert_dict_to_message_developer() -> None:
message = {"role": "developer", "content": "foo"}
result = _convert_dict_to_message(message)
expected_output = SystemMessage(
content="foo", additional_kwargs={"__openai_role__": "developer"}
)
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_developer() do?
test__convert_dict_to_message_developer() 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_developer() defined?
test__convert_dict_to_message_developer() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py at line 214.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free