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": "BANOFFEE CUPCAKES", "description": "An amazing thing about baking with bananas is that you can use up the bananas that you forgot about - the ones that have become slightly brown and squishy are perfect for cake. This sponge is made with soft light brown sugar and mashed banana, stuffed with a caramel sauce, topped with sweetened whipped cream and finished with chocolate shavings. It's basically banoffee pie in cupcake form!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "150g unsalted butter or baking spread", "150g soft light brown sugar", "2 eggs, beaten", "2 overripe medium bananas, mashed", "175g self-raising flour" ] }, { "section": "DECORATION", "ingredients": [ "150g caramel sauce", "300ml double cream", "2 tbsp icing sugar", "1 tsp vanilla extract", "Chocolate shavings", "Dried banana chips or 1 banana, chopped" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and get 12 cupcake cases ready.", "Beat the butter with the soft light brown sugar until light and fluffy.", "Add the eggs, mashed bananas and self-raising flour and mix until combined.", "Spoon the mix evenly into the cupcake cases and bake for 18-22 minutes until they are baked through and springy to touch.", "Leave to cool on a wire rack.", "When you are ready to decorate, core out a small amount of the sponge, and fill each hole with 1 heaped teaspoon of caramel.", "Whip the cream with the icing sugar and vanilla extract to soft peaks and then pipe onto your cupcakes in swirls.", "Decorate with some more caramel sauce, chocolate shavings and either some dried banana chips or fresh banana pieces." ], "author": null }
- Assistant
{ "data": "WNA" }