MCPcopy
hub / github.com/MinishLab/semble / _await_model

Method _await_model

src/semble/mcp.py:176–182  ·  view source on GitHub ↗

Block until the model is installed; re-raise the load error if it failed.

(self)

Source from the content-addressed store, hash-verified

174 self._revalidate_after: dict[str, float] = {} # cache_key -> monotonic time, staleness check is gated until
175
176 async def _await_model(self) -> str:
177 """Block until the model is installed; re-raise the load error if it failed."""
178 await self._model_ready.wait()
179 if self._model_error is not None:
180 raise self._model_error
181 assert self._model_path is not None
182 return self._model_path
183
184 def _compute_cache_key(self, source: str, ref: str | None = None) -> str:
185 """Compute the canonical cache key for a source."""

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected