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": "Pumpkin Waffles with Apple Cider Syrup", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 1/2 cups all-purpose flour", "4 teaspoons baking powder", "2 teaspoons ground cinnamon", "1 teaspoon ground allspice", "1 teaspoon ground ginger", "1/2 teaspoon salt", "1/4 cup packed brown sugar", "1 cup canned pumpkin", "2 cups milk", "4 eggs, separated", "1/4 cup butter, melted" ] }, { "section": "APPLE CIDER SYRUP", "ingredients": [ "1/2 cup white sugar", "1 tablespoon cornstarch", "1 teaspoon ground cinnamon", "1 cup apple cider", "1 tablespoon lemon juice", "2 tablespoons butter" ] } ], "instructions": [ "Preheat a waffle iron according to manufacturer's instructions.", "Combine the flour, baking powder, cinnamon, allspice, ginger, salt, and brown sugar in a mixing bowl.", "In a separate bowl, stir together the pumpkin, milk, and egg yolks.", "Whip the egg whites in a clean dry bowl until soft peaks form.", "Stir the flour mixture and 1/4 cup melted butter to the pumpkin mixture, stirring just to combine.", "Use a whisk or rubber spatula to fold 1/3 of the egg whites into the batter, stirring gently until incorporated.", "Fold in the remaining egg whites.", "Cook waffles according to manufacturer's instructions.", "To make the syrup, stir together the sugar, cornstarch, and cinnamon in a saucepan.", "Stir in the apple cider and lemon juice.", "Cook over medium heat until mixture begins to boil; boil until the syrup thickens.", "Remove from heat and stir in the 2 tablespoons of butter until melted.", "Serve warm." ], "author": null }
- Assistantjson
{ "data": "WNA" }