_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 1c214f1e_0644_6913_d2f0_c518eba12d57["_match_include_pattern()"] 7e138deb_72a0_c3b2_9372_a9429bc90819["file_search.py"] 1c214f1e_0644_6913_d2f0_c518eba12d57 -->|defined in| 7e138deb_72a0_c3b2_9372_a9429bc90819 3f120244_d865_db15_009c_7c3c7671ebd6["_python_search()"] 3f120244_d865_db15_009c_7c3c7671ebd6 -->|calls| 1c214f1e_0644_6913_d2f0_c518eba12d57 ef2e07ee_ee8e_f087_ecc5_334345441c90["_expand_include_patterns()"] 1c214f1e_0644_6913_d2f0_c518eba12d57 -->|calls| ef2e07ee_ee8e_f087_ecc5_334345441c90 style 1c214f1e_0644_6913_d2f0_c518eba12d57 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/langchain/agents/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/langchain_v1/langchain/agents/middleware/file_search.py.
Where is _match_include_pattern() defined?
_match_include_pattern() is defined in libs/langchain_v1/langchain/agents/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): _python_search.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free