Goal L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal L'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 Tu dois renvoyer 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": "Candied Yams", "description": "CANDIED YAMS ARE A THANKSGIVING CLASSIC that we make year after year. They're a warm and sweet bite of fall, with soft, buttery yams in spices and sugar. Don't forget to sop up the syrup with some bread!", "subtitle": "A Thanksgiving classic", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "¾ cup salted butter, melted", "½ cup packed dark brown sugar", "¼ cup packed light brown sugar", "1½ teaspoons ground cinnamon", "1 teaspoon ground nutmeg", "1 teaspoon ground allspice", "1 teaspoon vanilla extract", "½ teaspoon ground cloves", "3 large yams, peeled and cut into 1-inch pieces" ] } ], "instructions": [ "Prepare and preheat a smoker to 350°F.", "In a large bowl, combine butter, both sugars, cinnamon, nutmeg, allspice, vanilla, and cloves until smooth. Add yams, and fold into mixture until fully coated. Transfer to a grill-safe metal pan, and cover with foil.", "Place pan in smoker; cover and cook until yams are easily pierced with a knife, about 1 hour. Let rest at least 10 minutes before serving.", "Opt for the Oven If you don't feel like firing up the smoker, you can bake the yams in a 350°F oven instead." ], "author": "" }
- Assistantjson
{ "data": "WNA" }