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": "TRIPLE CHOCOLATE COOKIE DOUGH DESSERTS", "description": "Well, let's just start this by saying that I LOVE COOKIES. They are one of my favourite treats, possibly beating cheesecakes (I know, that's a bit of a shocker). What I love about cookies is that you can bake a classic cookie, or cookie bars, or make indulgent desserts like this firm favourite on my blog - gooey, delicious cookie dough served with ice cream and oodles of chocolate.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "80g unsalted butter, melted", "100g soft light brown sugar", "1 egg (small or medium)", "½ tsp vanilla extract", "100g plain flour", "25g cocoa powder", "Pinch of bicarbonate of soda", "50g white chocolate chips", "50g milk chocolate chips", "50g dark chocolate chips", "Vanilla ice cream, to serve" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and get 2 dishes ready. I use 12cm wide crème brûlée dishes, but anything similar will work.", "Pour the melted butter into a bowl and add the sugar. Whisk together until the sugar has dissolved slightly. Add the egg and vanilla extract and mix well again.", "Add the flour, cocoa powder, bicarbonate of soda and chocolate chips and mix well until it comes together to form a lovely thick cookie dough. Divide the mixture equally between the dishes and bake for 12-15 minutes, or until dry on top and just cooked through in the middle - the gooier the better!", "Remove from the oven and let them cool for about 10 minutes and then serve with a giant dollop of ice cream." ], "author": null }
- Assistantjson
{ "data": "WWW" }