TestChatDeepSeek Class — langchain Architecture
Architecture documentation for the TestChatDeepSeek class in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d0760b57_04d6_a19c_1fbd_5088521cc654["TestChatDeepSeek"] 971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54 d5b2c663_3bef_9fee_fbc6_8289d974a7e3["test_chat_models.py"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|defined in| d5b2c663_3bef_9fee_fbc6_8289d974a7e3 6cc56239_79c4_0ecd_6323_2430ebdfc357["chat_model_class()"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|method| 6cc56239_79c4_0ecd_6323_2430ebdfc357 f52384c0_8c2e_7bb6_ec51_c53e9f90818a["chat_model_params()"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|method| f52384c0_8c2e_7bb6_ec51_c53e9f90818a ba780382_07e5_c392_2797_bc1a3347b52f["supports_json_mode()"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|method| ba780382_07e5_c392_2797_bc1a3347b52f 196fbebb_60bc_b396_0505_a72a03e4d656["test_tool_message_histories_list_content()"] d0760b57_04d6_a19c_1fbd_5088521cc654 -->|method| 196fbebb_60bc_b396_0505_a72a03e4d656
Relationship Graph
Source Code
libs/partners/deepseek/tests/integration_tests/test_chat_models.py lines 16–44
class TestChatDeepSeek(ChatModelIntegrationTests):
"""Test `ChatDeepSeek` chat model."""
@property
def chat_model_class(self) -> type[ChatDeepSeek]:
"""Return class of chat model being tested."""
return ChatDeepSeek
@property
def chat_model_params(self) -> dict:
"""Parameters to create chat model instance for testing."""
return {
"model": MODEL_NAME,
"temperature": 0,
}
@property
def supports_json_mode(self) -> bool:
"""(bool) whether the chat model supports JSON mode."""
return True
@pytest.mark.xfail(reason="Not yet supported.")
def test_tool_message_histories_list_content(
self,
model: BaseChatModel,
my_adder_tool: BaseTool,
) -> None:
"""Override test for tool message histories with list content."""
super().test_tool_message_histories_list_content(model, my_adder_tool)
Extends
Source
Frequently Asked Questions
What is the TestChatDeepSeek class?
TestChatDeepSeek is a class in the langchain codebase, defined in libs/partners/deepseek/tests/integration_tests/test_chat_models.py.
Where is TestChatDeepSeek defined?
TestChatDeepSeek is defined in libs/partners/deepseek/tests/integration_tests/test_chat_models.py at line 16.
What does TestChatDeepSeek extend?
TestChatDeepSeek extends ChatModelIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free