(functions_dir: str | Path = FUNCTION_CALLING_DIR)
| 114 | |
| 115 | |
| 116 | def get_function_catalog(functions_dir: str | Path = FUNCTION_CALLING_DIR) -> FunctionCatalog: |
| 117 | directory = Path(functions_dir).resolve() |
| 118 | catalog = _catalog_registry.get(directory) |
| 119 | if catalog is None: |
| 120 | catalog = FunctionCatalog(directory) |
| 121 | _catalog_registry[directory] = catalog |
| 122 | return catalog |
| 123 | |
| 124 | |
| 125 | def _build_function_metadata(name: str, fn: Any, functions_dir: Path) -> FunctionMetadata: |
no test coverage detected