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": "Fine ratatouille", "description": "Ratatouille is the emblematic dish of the famously healthy Mediterranean diet, bursting as it is with antioxidants of all kinds. This recipe makes quite a lot, so if you have some left over, just freeze it.", "subtitle": "with basil", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "2 purple aubergines", "4 green courgettes", "2 yellow peppers", "6 tomatoes", "2 white onions", "2 garlic cloves", "3 tablespoons of olive oil", "salt", "freshly ground black pepper", "2 bay leaves", "a very small bunch of small-leaved basil", "sea salt" ] } ], "instructions": [ "Wash 2 purple aubergines, 4 green courgettes and 2 yellow peppers.", "Cut the aubergines and courgettes into very small cubes.", "Peel the peppers, remove their seeds, and cut into very small dice (brunoise).", "Blanch 6 tomatoes, quarter them and remove the insides and seeds.", "Cut the quarters into small dice.", "Peel and mince 2 white onions.", "Peel 2 garlic cloves and crush well, almost into a purée.", "Heat a large sauté pan with 3 tablespoons of olive oil and sweat the onions, crushed garlic, peppers and aubergines for 3 to 4 minutes.", "Add salt and freshly ground black pepper and 2 bay leaves.", "Stir and cook gently for 5 to 7 minutes.", "Add the tomatoes and courgettes and cook for a further 5 to 7 minutes.", "Adjust the seasoning and take the pan off the heat.", "Take out the bay leaves.", "Take the leaves from a very small bunch of small-leaved basil, add them, stir and tip the ratatouille into a serving dish.", "Sprinkle with a few grains of sea salt." ], "author": "" }
- Assistant
{ "data": "FR" }