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": "Trick or Treat Cheesecake", "description": null, "subtitle": null, "ingredients": [ { "section": "Crust", "ingredients": [ "25 cookies chocolate sandwich cookies (such as Oreo), crushed", "½ cup white sugar", "½ cup melted butter" ] }, { "section": "Filling", "ingredients": [ "2 (8 ounce) packages cream cheese, softened", "1 (14 ounce) can sweetened condensed milk", "3 large eggs eggs", "20 mini chocolate-coated caramel-peanut nougat candy bars (such as Snickers), cut into quarters", "2 teaspoons vanilla extract" ] } ], "instructions": [ "Preheat oven to 300 degrees F (150 degrees C). Place a shallow pan 1/2-full with water on the lower oven rack to minimize cracking in the cheesecake. Spray the inside of a 9-inch springform pan with cooking spray and line with parchment paper.", "Mix chocolate sandwich cookies, sugar, and butter together in a bowl; press into the bottom of the prepared pan.", "Beat cream cheese and sweetened condensed milk together in a separate bowl using an electric mixer until smooth; beat in eggs, 1 at a time, until just blended. Stir candy bars and vanilla extract into cream cheese mixture; pour over crust.", "Bake in the preheated oven until edges are set and center is still slightly soft, about 50 minutes. Turn off oven, leaving door open, and cool cheesecake in oven, at least 1 hour. Run a knife or spatula around the edges to loosen cheesecake; refrigerate in the pan until set, 8 hours or overnight." ], "author": null }
- Assistantjson
{ "data": "WNA" }