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": "Oeufs en cocotte", "description": "Les œufs en cocotte avec des morilles sont un plat savoureux et élégant, parfait pour impressionner vos invités.", "subtitle": "with morels", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "150 g de fresh morels", "1 silverskin onion", "250 ml of chicken stock", "2 handfuls of baby spinach leaves", "1 peeled garlic clove", "4 eggs", "1 tablespoon of crème fraîche" ] } ], "instructions": [ "Remove the base from 150 g of fresh morels, then wash the caps in several changes of warm water until all traces of sand have been removed. Dry in a salad spinner. Cut any large ones in half.", "Peel and mince or grate 1 silverskin onion.", "Heat a drop of olive oil in a flameproof casserole dish. Roll the morels and minced onion in it, add salt and sweat for 3 minutes.", "Pour in 250 ml of chicken stock and cook for about 20 minutes, until the morels are soft.", "Preheat the oven to 170 °C (gas mark 3 to 4).", "While the morels are cooking, take off the stalks, rinse and dry 2 handfuls of baby spinach leaves.", "Oil four ramekins with a brush, and rub with 1 peeled garlic clove.", "Tip the baby spinach leaves into the casserole dish of morels, mix, then distribute the preparation between the ramekins, spreading it around the edges. Take 4 eggs and break into the middle of each ramekin.", "Place the ramekins in a high-sided roasting tin, pour hot water a third of the way up and bake in the oven for 10 minutes, until the egg white is set.", "In the meantime, boil the remaining liquid from the morels in the casserole dish, add 1 tablespoon of crème fraîche, stir well until it melts and pour this creamy liquid into the ramekins as soon as they come out of the oven. Add a twist of freshly ground black pepper and serve immediately." ], "author": "" }
- Assistant
{ "data": "FR" }