@Guide(description: "Purchase (transaction) date normalized to ISO 8601 `YYYY-MM-DD`.") let date: String? @Guide(description: "Grand total amount paid in JPY (tax- inclusive), as a non-negative integer.") let amount: Int? @Guide(description: "Category for this receipt.") let category: Category? }
receipts. Carefully read through the input text in Japanese, scanned from a receipt. Line breaks correspond to each line of the receipt from top to bottom. Extract receipt information and return it in the provided schema format Each category definition for a receipt is following: - groceries: foodstuff, groceries - diningOut: payments related to restaurants, bars, and other dining expenses - householdSupplies: daily necessities, excluding food items … """ }
OCR lines of a Japanese retail receipt. ## Input \(receiptTextLines.joined(separator: "\n")) ## Requirements - The output format must be valid. - Ensure that the output is complete and not truncated. - If any information is missing or unclear, use "nil" for that field. """ }