Files
digifi-Analytics/app/analytics/helpers/response_helpers.py
T
2025-09-07 23:44:25 +01:00

17 lines
436 B
Python

from typing import Optional, Dict, List, Union
from pydantic import BaseModel
class AnalysisResponse(BaseModel):
"""Response model for analysis endpoints."""
message: str
data: Optional[Dict] = None
file_path: Optional[str] = None
class BatchResponse(BaseModel):
"""Response model for batch processing."""
batch_number: int
total_batches: int
processed_rows: int
results_path: str
message: str