Home / Function/ test__convert_dict_to_message_ai() — langchain Function Reference

test__convert_dict_to_message_ai() — langchain Function Reference

Architecture documentation for the test__convert_dict_to_message_ai() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6af61e4a_92ac_ac8b_d888_0ed2705d0d4e["test__convert_dict_to_message_ai()"]
  5bf2e477_37e0_3e98_4042_bc609f2f7f60["test_chat_models.py"]
  6af61e4a_92ac_ac8b_d888_0ed2705d0d4e -->|defined in| 5bf2e477_37e0_3e98_4042_bc609f2f7f60
  style 6af61e4a_92ac_ac8b_d888_0ed2705d0d4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/tests/unit_tests/test_chat_models.py lines 61–67

def test__convert_dict_to_message_ai() -> None:
    message = {"role": "assistant", "content": "foo"}
    result = _convert_dict_to_message(message)
    expected_output = AIMessage(
        content="foo", response_metadata={"model_provider": "groq"}
    )
    assert result == expected_output

Domain

Subdomains

Frequently Asked Questions

What does test__convert_dict_to_message_ai() do?
test__convert_dict_to_message_ai() is a function in the langchain codebase, defined in libs/partners/groq/tests/unit_tests/test_chat_models.py.
Where is test__convert_dict_to_message_ai() defined?
test__convert_dict_to_message_ai() is defined in libs/partners/groq/tests/unit_tests/test_chat_models.py at line 61.

Analyze Your Own Codebase

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

Try Supermodel Free