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": "BEEF, AUBERGINE & RICE CASSEROLE", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 kg lean ground beef", "3 large aubergines, peeled and slice in lengthwise", "2 C. sunflower oil", "450 g basmati rice", "2 large onions, chopped finely", "1 tsp mixed Arabic spices", "2 tsps salt", "2 liters cold water", "1 tsp fresh ground black pepper", "1 tsp turmeric", "4 tbsps of melted butter", "200 g blanched split almonds, chopped" ] } ], "instructions": [ "Set your oven to 325 degrees F before doing anything else and grease a baking dish.", "Rinse and drain the rice completely.", "In a pan, heat half of the oil and Stir in the onion and reduce the heat to low.", "Cook, covered for about 3 minutes.", "Stir in the beef on medium heat and cook for some time, breaking up the beef.", "Cook, covered for about 10 minutes.", "In another pan, heat the remaining oil and fry the aubergine till browned from both sides.", "Transfer the aubergine into a paper towel lined plate to drain.", "In a pan, mix together the water, spices and salt and bring to a boil and simmer for about 5 minutes.", "Place half of the cooked aubergine slices over beef mixture evenly, followed by half of rice.", "Place half of the beef mixture in the bottom of the prepared baking dish.", "Repeat these layers once and place the spice mixture on top.", "Cook everything in the oven for about 1 hour.", "Meanwhile in a frying pan, melt the butter and cook the nuts till golden brown.", "Transfer the casserole in serving plates and drizzle with the melted butter.", "Serve with a garnishing of fried nuts." ], "author": null }
- Assistantjson
{ "data": "WAS" }