Home / Function/ test_invoke_no_reasoning() — langchain Function Reference

test_invoke_no_reasoning() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py lines 124–135

async def test_invoke_no_reasoning(model: str, use_async: bool) -> None:
    """Test invoke with `reasoning=False`."""
    llm = ChatOllama(model=model, num_ctx=2**12, reasoning=False)
    message = HumanMessage(content=SAMPLE)
    if use_async:
        result = await llm.ainvoke([message])
    else:
        result = llm.invoke([message])
    assert result.content
    assert "reasoning_content" not in result.additional_kwargs
    assert "<think>" not in result.content
    assert "</think>" not in result.content

Domain

Subdomains

Frequently Asked Questions

What does test_invoke_no_reasoning() do?
test_invoke_no_reasoning() 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_no_reasoning() defined?
test_invoke_no_reasoning() is defined in libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py at line 124.

Analyze Your Own Codebase

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

Try Supermodel Free