from pydantic import BaseModel

from app.schemas.indexing import IndexJobStatus


class RagSessionJobResponse(BaseModel):
    rag_session_id: str
    index_job_id: str
    status: IndexJobStatus
    indexed_files: int = 0
    failed_files: int = 0
    cache_hit_files: int = 0
    cache_miss_files: int = 0
    error: dict | None = None
