utils/chat_extractions library

Functions

extractJsonFromText(String text) String
Extracts a valid JSON string from a block of text.
processReceipt(String receiptText, String api, List<String> categories) Future<Order>
Processes a receipt text using the Google Generative AI API and returns the structured Order object.