Files
operating-room-monitor-server/backend/app/algo_host/__init__.py

25 lines
791 B
Python
Raw Normal View History

2026-05-22 09:35:41 +08:00
"""Thin orchestration around algorithm_subprocesses reference bundles (no in-process inference)."""
from __future__ import annotations
from typing import TYPE_CHECKING
from app.algo_host.result_adapter import ReferenceDoctorInfo
if TYPE_CHECKING:
from app.algo_host.batch_service import BatchAlgorithmService, BatchRunResult
__all__ = ["BatchAlgorithmService", "BatchRunResult", "ReferenceDoctorInfo"]
def __getattr__(name: str):
if name == "BatchAlgorithmService":
from app.algo_host.batch_service import BatchAlgorithmService
return BatchAlgorithmService
if name == "BatchRunResult":
from app.algo_host.batch_service import BatchRunResult
return BatchRunResult
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")