MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _normalize_globs

Function _normalize_globs

functions/function_calling/file.py:998–1006  ·  view source on GitHub ↗
(patterns: Optional[Sequence[str]])

Source from the content-addressed store, hash-verified

996
997
998def _normalize_globs(patterns: Optional[Sequence[str]]) -> List[str]:
999 if not patterns:
1000 return []
1001 normalized: List[str] = []
1002 for raw in patterns:
1003 if not raw:
1004 continue
1005 normalized.append(str(raw))
1006 return normalized
1007
1008
1009def _iter_candidate_files(

Callers 1

search_in_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected