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": "CINNAMON TEA", "description": "This tradition is common in the Middle East, but if you look into its roots, you'll discover that cinnamon actually has many medical benefits. It has a variety of antioxidant and anti-inflammatory properties as well as medicinal benefits like lowering cholesterol and blood pressure. Traditionally, this drink is served to guests in teacups with plates of lightly toasted nuts. You sweeten to your liking and you add whatever nuts you fancy.", "subtitle": "A spiced and warming tea, maghlee is most often made after the birth of a child and served to both the new mother and all her guests.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "8-10 cinnamon sticks, lightly crushed", "1 tablespoon ground cinnamon", "1 teaspoon anise seed (optional)", "1 teaspoon ground ginger or a 2-inch/5-cm piece fresh ginger, sliced (optional)", "sugar, to taste", "any combination of toasted and coarsely chopped walnuts, almonds, and pine nuts, to serve" ] } ], "instructions": [ "Put the spices and ginger into a pan with 6 cups (2½ pints/1.5 liters) water and bring to a boil over medium-high heat.", "Reduce the heat and simmer for 30-60 minutes. The longer you wait, the stronger the tea.", "Remove from the heat and allow to sit for at least 15 minutes until the spices settle at the bottom.", "Using a strainer, pour into teacups and sweeten to taste.", "Serve alongside toasted and coarsely chopped nuts to be sprinkled over the tea." ], "author": "" }
- Assistantjson
{ "data": "WAS" }