MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _ensure_loaded

Method _ensure_loaded

utils/function_catalog.py:70–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self._loaded = True
69
70 def _ensure_loaded(self) -> None:
71 if not self._loaded:
72 self.refresh()
73
74 def get(self, name: str) -> FunctionMetadata | None:
75 self._ensure_loaded()

Callers 6

getMethod · 0.95
list_function_namesMethod · 0.95
list_metadataMethod · 0.95
iter_modulesMethod · 0.95
functions_for_moduleMethod · 0.95
load_errorMethod · 0.95

Calls 1

refreshMethod · 0.95

Tested by

no test coverage detected