"""Auto-generated stub for module: orchestrator."""
from typing import Any, Callable

from .contracts import SplitEvaluatorProtocol
from .evaluator import evaluate_available_splits
from .exceptions import InferenceRunnerError, ModelLoadError
from .runtime_registry import RuntimeTaskRegistry
from .schemas import MetricPayload, validate_payload
from .status_handler import EvaluationStatusReporter

# Functions
def build_runtime_split_evaluator(registry: Any) -> Callable[[str, Any], Any]:
    """
    Create split evaluator using runtime registry.
    
        ``split_formatter`` receives ``(split, raw_runner_output)`` and must return
        normalized payload records for that split.
    """
    ...
def load_model_from_registry(registry: Any) -> Any:
    """
    Load model using task/runtime registry and raise typed errors.
    """
    ...

# Classes
class EvalContext:
    # Runtime context consumed by orchestrators.

    ...
class EvaluationOrchestrator:
    # Execute split evaluation and payload normalization.

    def fail(self: Any, error: Any) -> None:
        """
        Report evaluation failure details to tracking facilities.
        """
        ...

    def persist(self: Any, payload: Any) -> None:
        """
        Persist successful payload and emit completion status.
        """
        ...

    def run(self: Any) -> Any:
        """
        Execute evaluation over available splits and normalize payload.
        """
        ...

