_match_include_pattern() — langchain Function Reference
Architecture documentation for the _match_include_pattern() function in file_search.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 54e626eb_8746_c714_57b6_ac728c78ed52["_match_include_pattern()"] 2be37047_277b_5443_dc33_7aebad3faaa4["file_search.py"] 54e626eb_8746_c714_57b6_ac728c78ed52 -->|defined in| 2be37047_277b_5443_dc33_7aebad3faaa4 9c9a2eda_be6c_5f6f_9a0a_3f3e5575dc2e["_handle_grep_search()"] 9c9a2eda_be6c_5f6f_9a0a_3f3e5575dc2e -->|calls| 54e626eb_8746_c714_57b6_ac728c78ed52 fea81925_aad2_dbab_3ab4_96f18a5cb4c7["_expand_include_patterns()"] 54e626eb_8746_c714_57b6_ac728c78ed52 -->|calls| fea81925_aad2_dbab_3ab4_96f18a5cb4c7 style 54e626eb_8746_c714_57b6_ac728c78ed52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/langchain_anthropic/middleware/file_search.py lines 78–84
def _match_include_pattern(basename: str, pattern: str) -> bool:
"""Return `True` if the basename matches the include pattern."""
expanded = _expand_include_patterns(pattern)
if not expanded:
return False
return any(fnmatch.fnmatch(basename, candidate) for candidate in expanded)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _match_include_pattern() do?
_match_include_pattern() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/middleware/file_search.py.
Where is _match_include_pattern() defined?
_match_include_pattern() is defined in libs/partners/anthropic/langchain_anthropic/middleware/file_search.py at line 78.
What does _match_include_pattern() call?
_match_include_pattern() calls 1 function(s): _expand_include_patterns.
What calls _match_include_pattern()?
_match_include_pattern() is called by 1 function(s): _handle_grep_search.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free