@dataclass(frozen=True,slots=True)classTokenCosts:"""Detailed breakdown of token costs."""input_cost:Decimal"""Cost for prompt tokens"""output_cost:Decimal"""Cost for completion tokens"""@propertydeftotal_cost(self)->Decimal:"""Calculate total cost as sum of input and output costs."""returnself.input_cost+self.output_cost