File size: 765 Bytes
0721bb4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Request / response models for report routes (KM-644).

The full report payload is the `AnalysisReport` contract
(src/agents/report/schemas.py); this module only adds the lightweight list-entry
returned by the versions endpoint.
"""

from datetime import datetime

from pydantic import BaseModel, Field


class ReportVersionEntry(BaseModel):
    """One row in a session's report-version list (for the Analysis-menu sidebar)."""

    report_id: str = Field(..., description="Stable report identifier.")
    version: int = Field(..., description="Monotonic version (V1, V2, …).")
    generated_at: datetime = Field(..., description="When this version was generated.")
    record_count: int = Field(..., description="Number of AnalysisRecords it was built from.")