test_convert_dict_to_message_without_reasoning_content() — langchain Function Reference
Architecture documentation for the test_convert_dict_to_message_without_reasoning_content() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1ab94707_2aa4_2fe1_e997_5ba30e7777df["test_convert_dict_to_message_without_reasoning_content()"] f28fd121_9d98_6d1d_bc45_cccbf6b9fad5["test_chat_models.py"] 1ab94707_2aa4_2fe1_e997_5ba30e7777df -->|defined in| f28fd121_9d98_6d1d_bc45_cccbf6b9fad5 style 1ab94707_2aa4_2fe1_e997_5ba30e7777df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/fireworks/tests/unit_tests/test_chat_models.py lines 27–38
def test_convert_dict_to_message_without_reasoning_content() -> None:
"""Test that messages without reasoning_content work correctly."""
response_dict = {
"role": "assistant",
"content": "The answer is 42.",
}
message = _convert_dict_to_message(response_dict)
assert isinstance(message, AIMessage)
assert message.content == "The answer is 42."
assert "reasoning_content" not in message.additional_kwargs
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_dict_to_message_without_reasoning_content() do?
test_convert_dict_to_message_without_reasoning_content() is a function in the langchain codebase, defined in libs/partners/fireworks/tests/unit_tests/test_chat_models.py.
Where is test_convert_dict_to_message_without_reasoning_content() defined?
test_convert_dict_to_message_without_reasoning_content() is defined in libs/partners/fireworks/tests/unit_tests/test_chat_models.py at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free