test_tool_search_is_builtin_tool() — langchain Function Reference
Architecture documentation for the test_tool_search_is_builtin_tool() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7e81aa60_930e_a819_8d0a_a4428db8ca17["test_tool_search_is_builtin_tool()"] 18428dc5_a41b_90c6_88ad_615296ee3311["test_chat_models.py"] 7e81aa60_930e_a819_8d0a_a4428db8ca17 -->|defined in| 18428dc5_a41b_90c6_88ad_615296ee3311 style 7e81aa60_930e_a819_8d0a_a4428db8ca17 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/test_chat_models.py lines 1806–1828
def test_tool_search_is_builtin_tool() -> None:
"""Test that tool search tools are recognized as built-in tools."""
# Test regex variant
regex_tool = {
"type": "tool_search_tool_regex_20251119",
"name": "tool_search_tool_regex",
}
assert _is_builtin_tool(regex_tool)
# Test BM25 variant
bm25_tool = {
"type": "tool_search_tool_bm25_20251119",
"name": "tool_search_tool_bm25",
}
assert _is_builtin_tool(bm25_tool)
# Test non-builtin tool
regular_tool = {
"name": "get_weather",
"description": "Get weather",
"input_schema": {"type": "object", "properties": {}},
}
assert not _is_builtin_tool(regular_tool)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_tool_search_is_builtin_tool() do?
test_tool_search_is_builtin_tool() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/test_chat_models.py.
Where is test_tool_search_is_builtin_tool() defined?
test_tool_search_is_builtin_tool() is defined in libs/partners/anthropic/tests/unit_tests/test_chat_models.py at line 1806.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free