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é.
code1. 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": "Coffee & Walnut Cake", "description": "Coffee cake with walnuts is such a classic combination - I love the taste of coffee cake, but oddly don't drink coffee that much - I'm more of a hot chocolate girl. However, a hot chocolate with a slice of coffee and walnut cake on the side is perfect. I love the light coffee-flavoured sponge, with the crunch of the walnuts in the sponge and on the top of the cake. The coffee-flavoured buttercream is smooth, silky and heavenly in every bite!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tbsp instant coffee granules", "25ml boiling water", "300g unsalted butter", "300g soft light brown sugar", "300g self-raising flour", "6 eggs", "100g chopped walnuts, plus extra to decorate" ] }, { "section": "BUTTERCREAM", "ingredients": [ "1 tbsp instant coffee granules", "25ml boiling water", "200g unsalted butter", "400g icing sugar" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and grease and line two 20cm round cake tins with parchment paper.", "Dissolve the coffee in the boiling water, and leave to cool.", "Beat together the butter and soft light brown sugar until light and fluffy. Add the self-raising flour and eggs and beat again until combined. Pour the cooled coffee into the mix, and beat again, then fold through the chopped walnuts.", "Split the cake mix evenly between the tins and bake the cakes for 30-35 minutes, or until a skewer inserted in the middle comes out clean.", "Let the cakes cool in the tins for about 10 minutes, then turn out onto a wire rack to cool fully while you make the buttercream.", "Dissolve the coffee in the boiling water and leave to cool.", "Beat the butter on its own for about 5 minutes until nice and smooth. Add the icing sugar in two batches, beating in fully after each batch. Add the cooled coffee and mix again until smooth.", "Place the first sponge on a plate and spread or pipe half of the buttercream over the top. Add the second layer and spread or pipe over the remaining buttercream.", "Finish by sprinkling over some chopped walnuts." ], "author": null }
- Assistantjson
{ "data": "WEU" }