test_reasoning_content() — langchain Function Reference
Architecture documentation for the test_reasoning_content() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ad2f61e3_c0e2_5ad0_8229_ab758278bc00["test_reasoning_content()"] d5b2c663_3bef_9fee_fbc6_8289d974a7e3["test_chat_models.py"] ad2f61e3_c0e2_5ad0_8229_ab758278bc00 -->|defined in| d5b2c663_3bef_9fee_fbc6_8289d974a7e3 style ad2f61e3_c0e2_5ad0_8229_ab758278bc00 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/deepseek/tests/integration_tests/test_chat_models.py lines 48–62
def test_reasoning_content() -> None:
"""Test reasoning content."""
chat_model = ChatDeepSeek(model="deepseek-reasoner")
response = chat_model.invoke("What is 3^3?")
assert response.content
assert response.additional_kwargs["reasoning_content"]
content_blocks = response.content_blocks
assert content_blocks is not None
assert len(content_blocks) > 0
reasoning_blocks = [
block for block in content_blocks if block.get("type") == "reasoning"
]
assert len(reasoning_blocks) > 0
raise ValueError
Domain
Subdomains
Source
Frequently Asked Questions
What does test_reasoning_content() do?
test_reasoning_content() is a function in the langchain codebase, defined in libs/partners/deepseek/tests/integration_tests/test_chat_models.py.
Where is test_reasoning_content() defined?
test_reasoning_content() is defined in libs/partners/deepseek/tests/integration_tests/test_chat_models.py at line 48.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free