MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / is_available

Method is_available

uncommon_route/model_map.py:641–646  ·  view source on GitHub ↗

``True`` if model resolves to a known upstream ID, ``None`` if unknown.

(self, model_name: str)

Source from the content-addressed store, hash-verified

639 # ---- inspection -------------------------------------------------------
640
641 def is_available(self, model_name: str) -> bool | None:
642 """``True`` if model resolves to a known upstream ID, ``None`` if unknown."""
643 if not self._discovered:
644 return None
645 resolved = self.resolve(model_name)
646 return resolved in self._upstream_models
647
648 def unresolved_models(self) -> list[str]:
649 """Internal names that have no confirmed upstream equivalent."""

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.95

Tested by

no test coverage detected