from dataclasses import dataclass, field
from datetime import datetime
from typing import List, Optional

@dataclass
class PalmOilBunch:
    ripeness_class: str
    confidence: float
    embedding: List[float]
    box: List[float]
    image_data: str
    timestamp: datetime = field(default_factory=datetime.now)
    id: Optional[str] = None
