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é.
1. 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": "Nine Spice Mix", "description": "I can still remember walking through Jerusalem's old city as a child with my mother, going from vendor to vendor and\nbuying different whole spices in bulk. My mother would roast the spices when we got home and the house would be\ndrunken on the fresh, earthy aromas. For years after I left home, she continued doing this, always sending me a jar of\nfreshly roasted and ground spices. Today I roast my own, but when I do, the smell always transports me back to that\ntime.", "subtitle": "تسع بهارات", "ingredients": [ { "section": "For the recipe", "ingredients": [ "6 tablespoons allspice berries", "6 cassia bark or cinnamon sticks", "3 tablespoons coriander seeds", "1 tablespoon black peppercorns", "1 teaspoon cardamom seeds", "½ teaspoon cumin seeds", "10 cloves", "2 blades of mace", "⅛ nutmeg, crushed" ] } ], "instructions": [ "Place all the ingredients in a large skillet (frying pan) over medium-low heat.", "Stir with a wooden spoon periodically to ensure the spices do not burn, until you begin to smell the aroma of the spices, about 10 minutes.", "Remove the pan from heat and set aside to cool completely, about 1 hour. This step is crucial because if the spices are not cooled properly, they will form a paste when ground rather than a powder.", "Place all the roasted spices into a heavy-duty spice grinder and grind until you achieve a fine powder consistency.", "Store the spice mix in an airtight container. It will keep for several months although the aroma will fade with time." ], "author": null }
- Assistant
{ "data": "IL" }