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 Cupcakes with Cream Cheese Frosting", "description": null, "subtitle": null, "ingredients": [ { "section": "Cupcakes", "ingredients": [ "3 cups baking mix (such as Bisquick)", "1 (15 ounce) can pumpkin puree", "1 cup white sugar", "1 cup brown sugar", "4 large eggs eggs", "1/4 cup butter, softened", "1/4 cup milk", "2 teaspoons pumpkin pie spice" ] }, { "section": "Cream Cheese Frosting", "ingredients": [ "½ (8 ounce) package cream cheese, softened", "½ cup butter, softened", "4½ cups confectioners' sugar, divided", "2 teaspoons vanilla extract" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Grease or line 36 muffin cups with paper liners.", "Beat baking mix, pumpkin puree, white sugar, brown sugar, eggs, 1/4 cup butter, milk, and pumpkin pie spice together in\na bowl using an electric mixer on low speed until well mixed; spoon into the prepared muffin cups.", "Bake in the preheated oven until a toothpick inserted in the center comes out clean, 20 to 30 minutes. Cool cupcakes in\npan for 5 minutes before transferring to a wire rack to cool completely.", "Beat cream cheese and 1/2 cup butter together in a bowl using an electric mixer on low speed until smooth and creamy.\nBeat 2 cups confectioners' sugar and vanilla extract into creamed butter mixture on low speed until well mixed; increase\nto high speed and beat until fluffy. Gradually pour 2 1/2 cups confectioners' sugar into frosting and beat on medium speed\nuntil frosting is thickened.", "Spoon frosting into a resealable plastic bag and snip 1 corner. Pipe frosting onto the cooled cupcakes." ], "author": null }
- Assistantjson
{ "data": "WNA" }