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": "BIRTHDAY CAKE COOKIES", "description": "When you think of a birthday, what springs to mind? I envisage lots of colour, balloons and loads of food. These cookies are meant to represent all of that and I think they work! Two delicious vanilla cookies laced with brightly coloured sprinkles and white chocolate, sandwiched together with a bright buttercream frosting. If you want to make a chocolate cookie dough, you can remove 50g plain flour from the recipe and add 35g cocoa powder instead. Use any colour buttercream you want in the middle - think red or green for Christmas or lilac for Easter ... it's up to you!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "115g unsalted butter, at room temperature", "100g soft light brown sugar", "100g white granulated sugar", "1 egg", "1 tsp vanilla extract", "300g plain flour", "½ tsp bicarbonate of soda", "½ tsp sea salt", "250g white chocolate chips", "75g funfetti sprinkles" ] }, { "section": "Filling", "ingredients": [ "75g unsalted butter, at room temperature", "150g icing sugar", "Pink food colouring" ] } ], "instructions": [ "In a large bowl, cream the butter, brown sugar and white sugar together until smooth.", "Add the egg and vanilla extract and beat again.", "Add the flour, bicarbonate of soda and sea salt, then beat until a dough is formed.", "Add the chocolate chips and funfetti sprinkles and mix until well distributed.", "Portion the dough out into 16 balls - each should weigh about 60g.", "Lay the balls out onto a flat tray that fits in the freezer and freeze for at least 30 minutes, or chill in the fridge for an hour or so.", "Meanwhile, preheat the oven to 180°C/160°C fan and line three baking trays with parchment paper.", "Remove the balls from the freezer or fridge and put them onto the lined baking trays. I do roughly six cookies per tray.", "Bake in the oven for 10-11 minutes.", "Leave to cool on the trays while you make the filling.", "In a large bowl, beat the butter for a few minutes to loosen it.", "Add the icing sugar and beat again until smooth.", "Add a few drops of food colouring (I used pink, but you can use any!) and beat well.", "Transfer the pink filling to a piping bag with the piping nozzle of your choice fitted and pipe over eight of the cookies.", "Sandwich the cookies together with the remaining eight cookies." ], "author": null }
- Assistant
{ "data": "WWW" }