Spaces:
Running
Running
Download src/runtime/__init__.py from ThomasHeisig/MHRN-Space: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/spaces/ThomasHeisig/MHRN-Space/resolve/main/src/runtime/__init__.py
- Command line
-
hf download hf://spaces/ThomasHeisig/MHRN-Space/src/runtime/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/ThomasHeisig/MHRN-Space/resolve/main/src/runtime/__init__.py
1.37 kB
| """Runtime contracts and lazily loaded control primitives for MHRN. | |
| The package root deliberately avoids importing control eagerly. Canonical | |
| low-level modules such as src.runtime.determinism must remain usable without | |
| importing Playground-facing runtime controllers and creating circular imports. | |
| """ | |
| from __future__ import annotations | |
| from typing import TYPE_CHECKING | |
| from .backend import ( | |
| BackendCapabilities, | |
| BackendState, | |
| ExecutionBackend, | |
| LiveInputExecutionBackend, | |
| RunResult, | |
| StepResult, | |
| ) | |
| from .modes import ObservabilityProfile, StateMode, validate_modes | |
| if TYPE_CHECKING: | |
| from .control import ( | |
| ControlCommand, | |
| ControlMode, | |
| ControlSnapshot, | |
| RuntimeController, | |
| ) | |
| __all__ = [ | |
| "BackendCapabilities", | |
| "BackendState", | |
| "ExecutionBackend", | |
| "LiveInputExecutionBackend", | |
| "RunResult", | |
| "StepResult", | |
| "ControlCommand", | |
| "ControlMode", | |
| "ControlSnapshot", | |
| "RuntimeController", | |
| "ObservabilityProfile", | |
| "StateMode", | |
| "validate_modes", | |
| ] | |
| def __getattr__(name: str) -> object: | |
| if name in { | |
| "ControlCommand", | |
| "ControlMode", | |
| "ControlSnapshot", | |
| "RuntimeController", | |
| }: | |
| from . import control | |
| return getattr(control, name) | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |