MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / _load_native

Function _load_native

switchyard_rust/core.py:374–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373
374def _load_native() -> _NativeModule:
375 _ensure_switchyard_version_env()
376 try:
377 return cast(_NativeModule, importlib.import_module("switchyard_rust._switchyard_rust"))
378 except ImportError as exc: # pragma: no cover - broken install guard
379 raise RuntimeError(
380 "The Switchyard native extension is required. Run `uv run maturin develop` "
381 "or install a built switchyard wheel."
382 ) from exc
383
384
385if TYPE_CHECKING:

Callers 15

__getattr__Function · 0.90
__getattr__Function · 0.90
__getattr__Function · 0.90
validateMethod · 0.70
__init__Method · 0.70
__init__Method · 0.70
core.pyFile · 0.70
is_subagent_requestFunction · 0.70
_processor_errorFunction · 0.70
_backend_errorFunction · 0.70
callMethod · 0.70
_call_backend_stageMethod · 0.70

Calls 1

Tested by

no test coverage detected