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": "Gooseberry Pie from Snow White and the 7 Dwarfs", "description": null, "subtitle": "Snow White was seen elegantly preparing a gooseberry pie for her 7 dwarves. Know how her pie tasted with this recipe.", "ingredients": [ { "section": "Crust", "ingredients": [ "9 oz softened unsalted butter", "5 oz icing sugar", "18 oz plain flour", "5 egg yolks" ] }, { "section": "Filling", "ingredients": [ "32 oz gooseberries", "8 oz caster sugar", "2 tbsp port" ] } ], "instructions": [ "Crust:", "1. In a large bowl, mix the icing sugar and butter. Then add in 4 egg yolks and flour. Mix thoroughly until the texture is crumbly similar to wet breadcrumbs.", "2. Add 1-2 tsp of water until the mixture comes together. Roll the dough and divide it into 2 balls.", "3. Freeze the dough for 2 hours.", "4. Roll the dough in a lightly floured surface. Flatten it into .5 inch thick.", "Filling:", "1. In a saucepan, mix the port, sugar, and fruit.", "2. Simmer it for 10 minutes or until the fruits become soft.", "3. Adjust the sweetness by adding more sugar.", "4. Pour the fruit mixture into a 25x25 cm pie dish.", "Baking:", "1. Preheat an oven to 190 C.", "2. Cover the pie dish with the flatten dough.", "3. Cut the excess strip on the side.", "4. Bake for 30 minutes" ], "author": null }
- Assistant
{ "data": "WNA" }