17 lines
436 B
Python
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 |