from __future__ import annotations from datetime import datetime from pydantic import BaseModel, Field class InformationExtractedFromABillReceipt(BaseModel): # hotel_name: str = Field(..., title="The name of the hotel") # address: str = Field(..., title="The address of the hotel") uids: str = Field(..., title="The bill number/invoice number") # booking_id: str = Field(..., title="The booking ID/confirmation ID/booking number") # check_in_date_time: datetime = Field(..., title="The check-in date and time") # check_out_date_time: datetime = Field(..., title="The check-out date and time") total: float = Field(..., title="cost of journey ticket converted from the given currency to INR") # booking_platform: str = Field(..., title="The booking platform") issue_date: date = Field(..., title="The date the invoice was issued") summary: str = Field(..., title="5-6 words short summary of purchased good(s)")