test_bind_tools_without_strict_mode_uses_default_endpoint() — langchain Function Reference
Architecture documentation for the test_bind_tools_without_strict_mode_uses_default_endpoint() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c57eb4e1_c465_0425_9e4e_0a395cb64508["test_bind_tools_without_strict_mode_uses_default_endpoint()"] 9e1e7e05_fcb9_6888_687f_284ccfd65fd2["TestChatDeepSeekStrictMode"] c57eb4e1_c465_0425_9e4e_0a395cb64508 -->|defined in| 9e1e7e05_fcb9_6888_687f_284ccfd65fd2 style c57eb4e1_c465_0425_9e4e_0a395cb64508 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/deepseek/tests/unit_tests/test_chat_models.py lines 280–293
def test_bind_tools_without_strict_mode_uses_default_endpoint(self) -> None:
"""Test bind_tools without strict or with strict=False uses default endpoint."""
llm = ChatDeepSeek(
model="deepseek-chat",
api_key=SecretStr("test_key"),
)
# Test with strict=False
bound_model_false = llm.bind_tools([SampleTool], strict=False)
assert bound_model_false is not None
# Test with strict=None (default)
bound_model_none = llm.bind_tools([SampleTool])
assert bound_model_none is not None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_bind_tools_without_strict_mode_uses_default_endpoint() do?
test_bind_tools_without_strict_mode_uses_default_endpoint() is a function in the langchain codebase, defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py.
Where is test_bind_tools_without_strict_mode_uses_default_endpoint() defined?
test_bind_tools_without_strict_mode_uses_default_endpoint() is defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py at line 280.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free