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": "Wild, Wild Mushroom Tartlets", "description": "", "subtitle": "Remy and Leo go hunting for fresh ingredients, and he comes across a beautiful mushroom and some herbs. A tart is the\nway to enjoy this French freshness.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "Store-bought puff pastry dough", "1 cup onion sliced", "3 cups of mixed wild mushroom", "2 tsp tarragon chopped", "1 tbsp full butter", "1 tsp grated garlic", "Salt and pepper", "A handful chopped parsley", "1 egg beaten", "Cheese of your choice" ] } ], "instructions": [ "In a pan melt the butter and cook the onion, garlic, and mushroom until soft and gooey", "Roll the puff pastry and cut an 8-inch round", "Place on a baking tray", "Pour the sautéed vegetable and fold the edges in\na crimp style, brush with egg and allow t bale until brown", "Sprinkle the cheese and return to the oven until melted", "Serve with sprinkle parsley" ], "author": "" }
- Assistantjson
{ "data": "FR" }