Home / Function/ test_disable_parallel_tool_calling() — langchain Function Reference

test_disable_parallel_tool_calling() — langchain Function Reference

Architecture documentation for the test_disable_parallel_tool_calling() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5f035ed6_b257_a1e1_f65f_f751b2245031["test_disable_parallel_tool_calling()"]
  bd382a4e_442c_13ae_530c_6e34bc43623d["test_base.py"]
  5f035ed6_b257_a1e1_f65f_f751b2245031 -->|defined in| bd382a4e_442c_13ae_530c_6e34bc43623d
  style 5f035ed6_b257_a1e1_f65f_f751b2245031 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 611–620

def test_disable_parallel_tool_calling() -> None:
    llm = ChatOpenAI(model="gpt-5-nano")
    llm_with_tools = llm.bind_tools([GenerateUsername], parallel_tool_calls=False)
    result = llm_with_tools.invoke(
        "Use the GenerateUsername tool to generate user names for:\n\n"
        "Sally with green hair\n"
        "Bob with blue hair"
    )
    assert isinstance(result, AIMessage)
    assert len(result.tool_calls) == 1

Domain

Subdomains

Frequently Asked Questions

What does test_disable_parallel_tool_calling() do?
test_disable_parallel_tool_calling() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is test_disable_parallel_tool_calling() defined?
test_disable_parallel_tool_calling() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 611.

Analyze Your Own Codebase

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

Try Supermodel Free