# Generated by @typespec-fastapi/emitter
# Do not edit this file manually — regenerate with: tsp compile .
# This file contains FastAPI router definitions generated from TypeSpec.
"""FastAPI router generated from TypeSpec operations."""
from __future__ import annotations


from fastapi import APIRouter, Depends, HTTPException, Path, Query, status
from pydantic import BaseModel

from ..models.common import ValidationError
from ..models.session_hub import BackfillResult


router = APIRouter(tags=["Embeddings"])


@router.post("/api/embeddings/backfill", response_model=BackfillResult | ValidationError)
async def backfill_embeddings(only_sessions: bool | None = Query(None), only_messages: bool | None = Query(None)) -> BackfillResult | ValidationError:
    # TODO: Implement business logic (Phase 3 — service layer)
    raise NotImplementedError(
        "Endpoint POST /api/embeddings/backfill not yet implemented"
    )
