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": "Snow White's Gooseberry Pie", "description": null, "subtitle": "Sweet, fruity, and indulgent, this decadent gooseberry pie is inspired by Snow White's own culinary creation. It's a legendary fruit pie that you will love, best served hot or cold with some ice cream to top. Let's dive right in!", "ingredients": [ { "section": "For the recipe", "ingredients": [ "Flour - 2 cups", "Butter, cold-4 cup", "Salt 1/4 teaspoon", "Iced water - 6 tablespoons" ] }, { "section": "Filling", "ingredients": [ "Gooseberries - 3 cups", "Orange juice - 1/2 cup", "White sugar 1 cup", "Butter - 1 tablespoon", "Vanilla extract - 1 teaspoon", "Flour 2 tablespoons", "Egg yolks - 2" ] } ], "instructions": [ "Make pie crust by blending flour, butter, and salt.", "Add water and knead lightly.", "Divide the dough in two. Roll one of them and place it on the bottom of a pie dish.", "Place some pie weights and bake this for 30 minutes at 350°F.", "Meanwhile, prepare filling by simmering gooseberries and orange juice for 5 minutes.", "Then add sugar, butter, vanilla, egg yolk, and flour.", "Pour the filling onto the baked pie crust.", "Roll the other half of the dough and cover the pie.", "Bake for 20 minutes.", "Cover the pie with foil and bake for 20 more minutes.", "Let cool, then slice and enjoy!" ], "author": null }
- Assistant
{ "data": "WNA" }