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": "Black Cat Cookies", "description": "", "subtitle": "These sparkly black cat cookies are a great addition to your next Halloween party. No bad luck here, just decadent\ncookies!", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1/4 teaspoon baking soda", "1 cup all-purpose flour", "½ cup dark baking cocoa", "½ teaspoon baking powder", "1/4 teaspoon salt", "½ teaspoon ground cinnamon", "1/4 cup butter, melted", "½ cup brown sugar", "1 tablespoon brewed coffee, cooled", "½ teaspoon vanilla", "1 egg", "Silver cake shimmer", "Candy corn" ] } ], "instructions": [ "Preheat the oven to 350 degrees F and line a baking sheet with parchment paper.", "Combine flour, cocoa powder, baking powder, cinnamon, baking soda, and salt in a large bowl. In a separate bowl,\nbeat together butter and sugar. Mix in coffee, vanilla and egg. Combine both mixtures and stir until combined.", "Scoop tablespoons of mixture into 1 inch balls. Roll in silver cake shimmer and place on baking sheet. Press each ball\nslightly with the bottom of a glass. Use dough to make small triangles and press into the top of each cookie to make\nears.", "Bake for 8 - 10 minutes, until cookies have cracks on the edges. Use candy corn to make eyes, transfer to a cooling\nrack to cool completely." ], "author": "" }
- Assistantjson
{ "data": "WNA" }