"""Health / readiness endpoint.""" from __future__ import annotations from fastapi import APIRouter from app.core.settings import get_settings from app.schemas.health import HealthResponse router = APIRouter(prefix="/api", tags=["health"]) @router.get("/health", response_model=HealthResponse) async def health() -> HealthResponse: settings = get_settings() # M1 skeleton: no engines loaded yet, so the service is trivially ready. # M2 redefines `ready` as "fast-engine weights present and warmed" (spec ยง7.2). return HealthResponse(ready=True, engines_loaded=[], version=settings.version)