test_convert_chunk_without_reasoning() — langchain Function Reference
Architecture documentation for the test_convert_chunk_without_reasoning() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2f82b024_731c_8898_5992_9c986d30e47d["test_convert_chunk_without_reasoning()"] 530201c5_d88b_5d70_4ba9_c13da0c872e6["TestChatDeepSeekCustomUnit"] 2f82b024_731c_8898_5992_9c986d30e47d -->|defined in| 530201c5_d88b_5d70_4ba9_c13da0c872e6 style 2f82b024_731c_8898_5992_9c986d30e47d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/deepseek/tests/unit_tests/test_chat_models.py lines 201–214
def test_convert_chunk_without_reasoning(self) -> None:
"""Test that chunk without reasoning fields works correctly."""
chat_model = ChatDeepSeek(model=MODEL_NAME, api_key=SecretStr("api_key"))
chunk: dict[str, Any] = {"choices": [{"delta": {"content": "Main content"}}]}
chunk_result = chat_model._convert_chunk_to_generation_chunk(
chunk,
AIMessageChunk,
None,
)
if chunk_result is None:
msg = "Expected chunk_result not to be None"
raise AssertionError(msg)
assert chunk_result.message.additional_kwargs.get("reasoning_content") is None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_chunk_without_reasoning() do?
test_convert_chunk_without_reasoning() is a function in the langchain codebase, defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py.
Where is test_convert_chunk_without_reasoning() defined?
test_convert_chunk_without_reasoning() is defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py at line 201.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free