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": "Lamb's Liver, Onions and Pecorino", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "300g banana shallots", "40g butter", "300g lamb's liver", "5 thinly sliced radishes", "2 tablespoons of red wine vinegar", "a handful of parsley leaves", "50g finely grated Pecorino" ] }, { "section": "For the second recipe", "ingredients": [ "a thin slice of butter", "a glug of oil", "4 slices of lamb's liver", "a small glass of dry Marsala or red wine", "4 tablespoons of coarse apple and onion chutney" ] } ], "instructions": [ "Peel, halve and very finely slice 300g banana shallots.", "Melt 40g butter in a large, non-stick frying pan.", "Add the shallots and fry, stirring regularly for about 10 minutes till soft and pale golden.", "Push to one side of the pan.", "Cut 300g lamb's liver into small pieces and season generously.", "Add a thin slice of butter to the pan, then add the liver and fry for a maximum of 2 minutes on each side.", "Add 5 thinly sliced radishes.", "Pour in 2 tablespoons of red wine vinegar and add a handful of parsley leaves.", "Then add 50g finely grated Pecorino.", "Serve with skin-on mashed potato.", "Warm a thin slice of butter and a glug of oil in a shallow pan.", "Lay 4 slices of lamb's liver in the sizzling pan, fry for a couple of minutes on each side (toasty brown edges are good, but the inside should still be rose pink).", "Remove to a warm plate and pour a small glass of dry Marsala or red wine into the pan.", "Bubble, stir and scrape then reduce by half over a high heat.", "Stir in 4 tablespoons of coarse apple and onion chutney.", "Slide in the liver and serve." ], "author": null }
- Assistantjson
{ "data": "IT" }