MCPcopy
hub / github.com/OpenBMB/ChatDev / __init__

Method __init__

utils/function_catalog.py:36–41  ·  view source on GitHub ↗
(self, functions_dir: str | Path = FUNCTION_CALLING_DIR)

Source from the content-addressed store, hash-verified

34 """Inspect and cache callable metadata for tool schemas."""
35
36 def __init__(self, functions_dir: str | Path = FUNCTION_CALLING_DIR) -> None:
37 self._functions_dir = Path(functions_dir).resolve()
38 self._metadata: Dict[str, FunctionMetadata] = {}
39 self._loaded = False
40 self._load_error: Exception | None = None
41 self._module_index: Dict[str, List[str]] = {}
42
43 def refresh(self) -> None:
44 """Reload metadata from the function directory."""

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected