"""Lazy exports for AIIQ services."""

from __future__ import annotations

from typing import Any

__all__ = [
    "TaskService",
    "build_runtime_components",
    "build_task_service",
    "build_task_worker",
]


def __getattr__(name: str) -> Any:
    if name in __all__:
        from ai_orchestrator.services.task_service import (
            TaskService,
            build_runtime_components,
            build_task_service,
            build_task_worker,
        )

        exports = {
            "TaskService": TaskService,
            "build_runtime_components": build_runtime_components,
            "build_task_service": build_task_service,
            "build_task_worker": build_task_worker,
        }
        return exports[name]
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
