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": "Vanilla Traybake", "description": null, "subtitle": "Traybake cakes are so much easier to serve at parties: you only need one tin, and you don't need to decorate them in any particularly fancy way. Bake the sponge, slather on some frosting, and you're done! This is a perfect easy bake for a bake sale or children's party.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "400g unsalted butter", "400g caster sugar", "8 eggs", "400g self-raising flour", "2 tsp vanilla extract" ] }, { "section": "BUTTERCREAM", "ingredients": [ "250g unsalted butter, at room temperature", "500g icing sugar", "2 tsp vanilla extract", "1-2 tbsp boiling water (optional)" ] }, { "section": "DECORATION", "ingredients": [ "White chocolate 'jazzie' sweets", "Fruit", "Sprinkles" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and line a 23 x 33cm traybake tin with parchment paper.", "In a bowl, mix the butter and caster sugar together until light and fluffy.", "Add the eggs, self-raising flour and vanilla extract to the bowl and beat again until combined.", "Pour the mixture into the lined tin and bake for 45-50 minutes, or until a skewer inserted in the middle comes out clean.", "Leave the cake to cool in the tin for 10 minutes, then turn out onto a wire rack to cool fully while you make the buttercream.", "Add the butter to a bowl and beat on its own for a few minutes to loosen and soften it.", "Add the icing sugar and beat again until combined, then add the vanilla and beat again.", "If necessary, gradually add 1-2 tablespoons of boiling water, beating fully each time, to soften it slightly.", "Spread the buttercream onto the cake and decorate the top with white chocolate 'jazzies', fruit, sprinkles - or whatever you want!" ], "author": null }
- Assistantjson
{ "data": "WNA" }