test_anthropic_bind_tools_tool_choice() — langchain Function Reference
Architecture documentation for the test_anthropic_bind_tools_tool_choice() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6fabebdc_9caf_9716_01fe_216b7e3d61c5["test_anthropic_bind_tools_tool_choice()"] f27640dd_3870_5548_d153_f9504ae1021f["test_chat_models.py"] 6fabebdc_9caf_9716_01fe_216b7e3d61c5 -->|defined in| f27640dd_3870_5548_d153_f9504ae1021f style 6fabebdc_9caf_9716_01fe_216b7e3d61c5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/integration_tests/test_chat_models.py lines 855–861
def test_anthropic_bind_tools_tool_choice(tool_choice: str) -> None:
chat_model = ChatAnthropic(
model=MODEL_NAME, # type: ignore[call-arg]
)
chat_model_with_tools = chat_model.bind_tools([GetWeather], tool_choice=tool_choice)
response = chat_model_with_tools.invoke("what's the weather in ny and la")
assert isinstance(response, AIMessage)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_anthropic_bind_tools_tool_choice() do?
test_anthropic_bind_tools_tool_choice() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/integration_tests/test_chat_models.py.
Where is test_anthropic_bind_tools_tool_choice() defined?
test_anthropic_bind_tools_tool_choice() is defined in libs/partners/anthropic/tests/integration_tests/test_chat_models.py at line 855.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free