(self, functions_dir: str | Path = FUNCTION_CALLING_DIR)
| 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.""" |