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": "Ras el Hanout", "description": "", "subtitle": "Spice Mix", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tsp salt", "1 tsp ground cumin", "1 tsp ground ginger", "1 tsp ground turmeric", "3/4 tsp ground cinnamon", "3/4 tsp freshly ground black pepper", "1/2 tsp ground white pepper", "1/2 tsp ground coriander seed", "1/2 tsp ground cayenne pepper", "1/2 tsp ground allspice", "1/2 tsp ground nutmeg", "1/4 tsp ground cloves" ] } ], "instructions": [ "1. Combine salt, turmeric, cinnamon, black pepper, ginger, white pepper, coriander, cayenne\npepper, cumin, allspice, nutmeg, and cloves in a small sized bowl thoroughly.", "2. Store this in a container that is airtight up to 1 month." ], "author": "" }
- Assistantjson
{ "data": "WAF" }Explanation: The recipe is for "Ras el Hanout," which is a well-known spice mix originating from North African cuisine, particularly Morocco. Since no explicit country is mentioned in the recipe, but the origin is culturally linked to North Africa, the continent code for Africa (WAF) is returned.