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": "Harvest Pumpkin Cupcakes", "description": null, "subtitle": null, "ingredients": [ { "section": "Cupcakes", "ingredients": [ "4 large eggs eggs, slightly beaten", "3/4 cup Mazola Vegetable Plus! Oil", "2 cups sugar", "1 (15 ounce) can pumpkin", "1/4 cups all-purpose flour", "1/4 cup Argo OR Kingsford's Corn Starch", "4 teaspoons Spice Islands Pumpkin Pie Spice", "2 teaspoons Argo Baking Powder", "1 teaspoon baking soda", "3/4 teaspoon salt" ] }, { "section": "Frosting", "ingredients": [ "1 (8 ounce) package cream cheese, softened", "3 tablespoons butter OR margarine, softened", "1 tablespoon orange juice", "2 teaspoons Spice Islands 100% Pure Bourbon Vanilla Extract", "1 ½ teaspoons freshly grated orange peel", "4 cups powdered sugar" ] } ], "instructions": [ "Step 1\nTo make cupcakes: Blend the eggs, oil, sugar, and pumpkin in a large mixing bowl; set aside. Stir together dry ingredients in a separate bowl. Add dry ingredients to pumpkin mixture and beat until well blended. POUR into lined muffin tins. Fill about 2/3 full. Bake in preheated 350 degrees oven for 30 minutes or until center springs back when touched. Cool 30 minutes. Spread with frosting.", "Step 2\nTo make frosting: Beat cream cheese and butter until fluffy. Add remaining ingredients and beat until smooth. Spread over cooled cupcakes." ], "author": null }
- Assistantjson
{ "data": "WNA" }