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": "Goat's Cheese Frittata", "description": null, "subtitle": "A tender, melting omelette.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "goat's cheese", "4 eggs", "150g spinach", "50g butter", "thyme", "basil", "150g goat's cheese, sliced", "rosemary" ] }, { "section": "Asparagus and tarragon", "ingredients": [ "eggs", "fresh tarragon", "a bunch of asparagus spears" ] }, { "section": "Aubergine and thyme", "ingredients": [ "a small to medium aubergine", "olive oil", "thyme", "salt" ] } ], "instructions": [ "Beat 4 eggs in a bowl and season generously.", "Add a tablespoon of thyme leaves and a few roughly torn basil leaves.", "Heat an overhead grill.", "Melt 50g butter in a small non-stick pan, about 20cm in diameter.", "Add 150g spinach and cook for about 1 minute until the leaves soften.", "Add the spinach to the bowl with the eggs.", "Wipe the pan, then place a thin slice of butter in it.", "When it starts to sizzle add the egg mixture, then 150g goat's cheese, sliced, and a teaspoon of chopped rosemary leaves and cook on a low to moderate heat.", "Once the omelette is partly set - this will take about 6 minutes - finish cooking it under the grill until golden on top." ], "author": null }
- Assistant
{ "data": "WWW" }