Goal L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal L'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 Tu dois renvoyer 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": "Smoked Sweet Potato Pie", "description": "THIS RECIPE IS A COLLABORATION among me and my oldest daughters. It's a classic sweet potato pie with a sweet and smoky finish. It takes longer to make, but it's worth it.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "3 large sweet potatoes (2½ pounds)", "Vegetable oil", "1 teaspoon kosher salt, plus more for potatoes", "3 large eggs", "½ cup granulated sugar", "½ cup packed light brown sugar", "½ cup unsalted butter, melted", "1/3 cup whole milk", "¼ cup heavy cream, plus more for brushing", "2 tablespoons maple syrup", "1 tablespoon vanilla extract", "1½ teaspoons ground cinnamon", "¼ teaspoon ground nutmeg", "1 (9-inch) premade pie shell", "Sweetened whipped cream" ] } ], "instructions": [ "Prepare and preheat a smoker to 250°F. Wash and dry sweet potatoes, then poke all over with a fork. Rub with vegetable oil, and season lightly with salt.", "Place sweet potatoes directly on grates in smoker; cover and cook until soft and skins begin to collapse, about 2 hours. Transfer sweet potatoes to a baking sheet, and cool completely.", "Preheat oven to 350°F. Remove and discard potato skins; place flesh in a large bowl. Beat sweet potatoes until smooth using an electric mixer (you should have about 2 cups).", "Add eggs, next 9 ingredients (through nutmeg), and 1 teaspoon salt to potatoes. Beat until smooth, scraping down sides of bowl several times. Pour into pie shell, and smooth top. (There may be a little filling left over.) Brush edges of crust with a little heavy cream.", "Bake pie until set, 55 to 60 minutes. The pie will still have a slight wiggle to it, but a wooden pick should come out mostly clean. Let pie cool completely on a wire rack. Serve with whipped cream." ], "author": "" }
- Assistant
{ "data": "WNA" }