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": "CARROT CAKE COOKIES", "description": "Carrot cake is one of my favourite cakes, so why not combine the idea with cookies? These are soft, full of flavour and utterly delicious. They are the perfect bake for someone who likes carrot cake and cookies as much as me!", "subtitle": "Carrot cake is one of my favourite cakes, so why not combine the idea with cookies? These are soft, full of flavour and utterly delicious.\nThey are the perfect bake for someone who likes carrot cake and cookies as much as me!", "ingredients": [ { "section": "For the recipe", "ingredients": [ "125g unsalted butter", "150g soft light brown sugar", "1 egg (medium or large)", "200g finely grated carrot", "175g plain flour", "75g rolled oats", "½ tsp bicarbonate of soda", "½ tsp ground cinnamon", "1 tsp mixed spice" ] }, { "section": "For the cream cheese frosting (optional)", "ingredients": [ "50g unsalted butter", "50g icing sugar", "½ tsp vanilla extract", "100g full-fat soft cheese", "A pinch of ground cinnamon" ] } ], "instructions": [ "Preheat the oven to 200°C/180°C fan and line 2-3 baking trays with parchment paper.", "Add the butter and soft light brown sugar to a bowl and beat together until creamy.", "Add the egg and finely grated carrot and beat again.", "Add the flour, oats, bicarbonate of soda, ground cinnamon and mixed spice and mix again.", "Spoon the cookie mixture onto the lined trays - I use a 5cm cookie scoop and bake maximum of 6 cookies per tray.", "Bake the cookies for 10-12 minutes.", "Once baked, leave the cookies to cool on the tray for about 5 minutes, then transfer to a wire rack to cool fully." ], "author": null }
- Assistant
{ "data": "WEU" }