Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un code correspondant dans un format JSON structuré.
1. Recherche d’un pays mentionné dans la recette et extraction de son code ISO 3166-1 alpha-2. 2. Détermination de l’origine culinaire du pays si aucun pays n'est explicitement mentionné. 3. Identification d’un continent si aucun pays ne peut être déterminé. 4. Retour du code WWW si l’origine ne peut être définie. Return Format Renvoies un objet JSON structuré comme suit : json { "data": "<code>" } - Si un pays est mentionné, utilise son code ISO 3166-1 alpha-2 (ex. : FR pour la France). - Si aucun pays n'est trouvé, renvoie un code de continent parmi : WAF (Afrique) WAS (Asie) WEU (Europe) WNA (Amérique du Nord) WSA (Amérique du Sud) WOC (Océanie) - Si aucune information ne permet de déterminer une origine, renvoie WWW. Warnings - Respecte l’ordre de priorité : pays → continent → code WWW. - Le code ISO 3166-1 alpha-2 doit être exact et valide si un pays est identifié. - Le format du JSON doit être strictement respecté et bien formatté. - Ne fais aucune supposition infondée sur l’origine de la recette. Context Dump Données de la recette fournies : json {"title": "SWEET POTATO AND GINGER LOAF", "description": "This sweet potato loaf can be enjoyed on any occasion: as an appetizer with a chutney or sauce, as a snack, or even as a dessert with jam or a scoop of ice cream.", "subtitle": "MAKES ONE 9 × 5-INCH (23 × 13 CM) LOAF", "ingredients": [ { "section": "For the recipe", "ingredients": [ "3 medium sweet potatoes (about 21 ounces/600 g), diced", "1 cup (140 g) rice flour, plus more for dusting", "½ cup (160 ml) hazelnut or almond milk", "½ cup (40 g) almond meal", "½ cup (60 g) coconut sugar (or brown sugar)", "1 tablespoon lemon juice", "1 teaspoon baking powder", "1 teaspoon grated ginger (or ground ginger)", "1 tablespoon coconut oil, plus more for oiling", "½ teaspoon ground nutmeg", "Pinch of salt" ] } ], "instructions": [ "Preheat the oven to 350°F (180°C). Line a baking sheet with parchment paper.", "Bake the sweet potatoes for about 35 minutes, until golden brown and caramelized. Set them aside to cool.", "Transfer the cooled sweet potatoes to a large bowl and mash. Add the rice flour, hazelnut milk, almond meal, sugar, lemon juice, baking powder, ginger, coconut oil, and nutmeg, and mix thoroughly.", "Oil a 9 x 5-inch (23 x 13 cm) loaf pan and dust with flour. Transfer the batter to the pan.", "Bake for 50 minutes, until a tester inserted into the center comes out clean. Let cool, then remove from the pan and slice." ], "author": "" }
- Assistant
{ "data": "WWW" }