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": "Sausages, Mash and Tomato Gravy", "description": null, "subtitle": "Bolstering food for a cold night.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "sausages", "potatoes", "tomatoes", "shallots", "stock", "double cream", "butter", "2 banana shallots or small onions", "6 first-class butcher's sausages", "2 beefsteak tomatoes or large vine-ripened tomatoes", "4 tablespoons of olive oil", "2 large potatoes", "500ml beef or chicken stock", "50g butter", "4 tablespoons of double cream" ] } ], "instructions": [ "Set the oven at 180°C/Gas 4.", "Peel 2 banana shallots or small onions, quarter them lengthways, then put them in a roasting tin with 6 first-class butcher's sausages.", "Cut 2 beefsteak tomatoes or large vine-ripened tomatoes into quarters and add to the tin with 4 tablespoons of olive oil.", "Bake for an hour, until nicely browned.", "Cut 2 large potatoes into 6 pieces each, without peeling, then boil them in deep, salted water till tender.", "Remove the roasting tin from the oven, place on the hob and pour in 500ml beef or chicken stock.", "Leave to simmer, stirring regularly.", "Drain the potatoes and return them to the pan.", "Add 50g butter and mash with a potato masher.", "Beat in 4 tablespoons of double cream with a wooden spoon and season carefully.", "Leave on a low heat, stirring regularly.", "Mash up the tomatoes in the gravy with a fork, stirring to dissolve any roasted pan juices into the sauce.", "Serve the sausages and gravy over the creamy mash." ], "author": null }
- Assistant
{ "data": "GB" }