Home / Function/ test_convert_to_openai_messages_developer() — langchain Function Reference

test_convert_to_openai_messages_developer() — langchain Function Reference

Architecture documentation for the test_convert_to_openai_messages_developer() function in test_utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d35d4915_7f05_ac89_3914_938ba7501aca["test_convert_to_openai_messages_developer()"]
  03f6a5ae_d57a_eb66_626a_b9e082b763ea["test_utils.py"]
  d35d4915_7f05_ac89_3914_938ba7501aca -->|defined in| 03f6a5ae_d57a_eb66_626a_b9e082b763ea
  style d35d4915_7f05_ac89_3914_938ba7501aca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/test_utils.py lines 1350–1356

def test_convert_to_openai_messages_developer() -> None:
    messages: list[MessageLikeRepresentation] = [
        SystemMessage("a", additional_kwargs={"__openai_role__": "developer"}),
        {"role": "developer", "content": "a"},
    ]
    result = convert_to_openai_messages(messages)
    assert result == [{"role": "developer", "content": "a"}] * 2

Domain

Subdomains

Frequently Asked Questions

What does test_convert_to_openai_messages_developer() do?
test_convert_to_openai_messages_developer() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/test_utils.py.
Where is test_convert_to_openai_messages_developer() defined?
test_convert_to_openai_messages_developer() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 1350.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free