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": "Joe's Incredible Bacon Pumpkin Pie", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ cup cubed fresh pumpkin", "1½ cups cream cheese, softened", "1 cup packed brown sugar", "1 teaspoon vanilla extract", "3 large eggs eggs", "1 cup half-and-half", "1 teaspoon ground cinnamon", "½ teaspoon ground ginger", "½ teaspoon ground allspice", "½ teaspoon ground cloves", "2 (10 inch) prepared graham cracker pie crust", "16 slices maple-cured bacon" ] } ], "instructions": [ "Preheat oven to 425 degrees F (220 degrees C).", "Bring a small pot of salted water to a boil; add the pumpkin and cook until soft enough to easily pierce with a fork, about 10 minutes. Drain.", "Mash the cooked pumpkin with a potato masher in your favorite large bowl. Mix the cream cheese and brown sugar with the mashed pumpkin. Whisk in the eggs one at a time. Add the vanilla, half-and-half, cinnamon, ginger, allspice, and cloves; stir until you have a thin batter. The batter should be slightly thinner than pancake batter. Pour the batter into the pie crusts.", "Place bacon in a large skillet over medium heat until evenly brown. Trim soft, fatty bits from strips. Press 7 pieces of bacon into the batter of each pie with a fork.", "Bake the pies in the preheated oven for 15 minutes. Decrease the heat to 375 degrees F (190 degrees C). Top each pie with 2 pieces of cooked bacon and bake another 30 minutes, or until a knife inserted in the center comes out clean. Allow pies to cool completely before serving." ], "author": "Joe" }
- Assistant
{ "data": "WNA" }