Home / Function/ test_invoke_reasoning_none() — langchain Function Reference

test_invoke_reasoning_none() — langchain Function Reference

Architecture documentation for the test_invoke_reasoning_none() function in test_chat_models_reasoning.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a3e09c0f_122b_1679_f030_87fbe5f362ef["test_invoke_reasoning_none()"]
  5a5c2d7b_4823_4697_a3e1_c5e1c3fce238["test_chat_models_reasoning.py"]
  a3e09c0f_122b_1679_f030_87fbe5f362ef -->|defined in| 5a5c2d7b_4823_4697_a3e1_c5e1c3fce238
  style a3e09c0f_122b_1679_f030_87fbe5f362ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py lines 140–150

async def test_invoke_reasoning_none(model: str, use_async: bool) -> None:
    """Test invoke with `reasoning=None`."""
    llm = ChatOllama(model=model, num_ctx=2**12, reasoning=None)
    message = HumanMessage(content=SAMPLE)
    if use_async:
        result = await llm.ainvoke([message])
    else:
        result = llm.invoke([message])
    assert result.content
    # reasoning_content is only captured when reasoning=True
    assert "reasoning_content" not in result.additional_kwargs

Domain

Subdomains

Frequently Asked Questions

What does test_invoke_reasoning_none() do?
test_invoke_reasoning_none() is a function in the langchain codebase, defined in libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py.
Where is test_invoke_reasoning_none() defined?
test_invoke_reasoning_none() is defined in libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py at line 140.

Analyze Your Own Codebase

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

Try Supermodel Free