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": "White cabbage salad", "description": "Fresh vegetables", "subtitle": "with soft-boiled egg", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 white cabbage", "4 tablespoons of wine vinegar", "4 tablespoons of olive oil", "freshly ground black pepper", "3 eggs", "small bunch of parsley", "small bunch of chervil", "very small bunch of tarragon", "8 thin slices of wholemeal bread" ] } ], "instructions": [ "Cut the base of 1 white cabbage. Separate the leaves and wash them.", "Remove the tougher outer leaves and then finely slice the rest into 5 cm strips.", "Heat a flameproof casserole dish with 4 tablespoons of wine vinegar.", "Add the sliced cabbage leaves, cook for just 1 minute, stirring, then transfer to a large bowl.", "Pour 4 tablespoons of olive oil over and add freshly ground black pepper.", "Leave to marinate for 20 minutes.", "In the meantime, soft boil 3 eggs (6 minutes), cool and shell them.", "Preheat the oven to 200 °C (gas mark 6).", "Wash, dry and cut the leaves off a small bunch of parsley, a small bunch of chervil and a very small bunch of tarragon.", "Put the soft-boiled eggs in a bowl and crush with a fork.", "Add them to the cabbage when it has sufficiently marinated. Also add the herb leaves.", "When your oven is hot, place 8 thin slices of wholemeal bread on the rack and dry until crunchy and slightly coloured (1 to 2 minutes).", "Put the cabbage in the serving dish. Break up the slices of dried bread and arrange them decoratively on top.", "Serve straight away." ], "author": "" }
- Assistantjson
{ "data": "WEU" }