test_disable_parallel_tool_calling() — langchain Function Reference
Architecture documentation for the test_disable_parallel_tool_calling() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9f320d94_4596_a89a_c5aa_4448488c8080["test_disable_parallel_tool_calling()"] f27640dd_3870_5548_d153_f9504ae1021f["test_chat_models.py"] 9f320d94_4596_a89a_c5aa_4448488c8080 -->|defined in| f27640dd_3870_5548_d153_f9504ae1021f style 9f320d94_4596_a89a_c5aa_4448488c8080 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/integration_tests/test_chat_models.py lines 633–642
def test_disable_parallel_tool_calling() -> None:
llm = ChatAnthropic(model=MODEL_NAME) # type: ignore[call-arg]
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
Source
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/anthropic/tests/integration_tests/test_chat_models.py.
Where is test_disable_parallel_tool_calling() defined?
test_disable_parallel_tool_calling() is defined in libs/partners/anthropic/tests/integration_tests/test_chat_models.py at line 633.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free