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": "Doughnut Bites", "description": "Doughnut bites (or doughnut holes) are usually something that gets ignored, especially if you have a freshly made, delicious, sweet doughnut staring straight at you. However these are designed to be doughnut bites. These sweet mini doughnuts, coated in sugar, are the best and because they use a slightly different dough (no bread flour, yeast or proving time), they are quick to make and even quicker to eat!", "subtitle": null, "ingredients": [ { "section": "DOUGHNUT BITES", "ingredients": [ "250g plain flour, plus extra f dusting", "• 50g caster sugar", "• 2 tsp baking powder", "• Pinch of salt", "• 75g chilled unsalted butter, cubed", "• 150ml full-fat milk", "• 1 litre sunflower oil, for frying" ] }, { "section": "COATING", "ingredients": [ "• 100g caster sugar" ] } ], "instructions": [ "Add the plain flour, caster sugar, baking powder and salt to a bowl and mix to combine.", "With your fingertips, rub the butter into the mixture until it resembles breadcrumbs.", "Slowly add the milk to the bowl, mixing with a spatula or your hands, until a dough is formed.", "Turn the dough out on to a lightly floured work surface and knead until you have a ball that is smooth and not too sticky.", "Pour the oil in a large pan and heat until it reaches about 170°C - test this with a thermometer.", "While the oil is heating, portion the dough into about 15 balls (about 1 tablespoon of dough each) and roll into mini doughnuts.", "Carefully lower the doughnut bites into the oil with a slotted spoon, about 4 or 5 at a time, and fry about 1-2 minutes on each side.", "Once the doughnuts are a lovely golden colour, transfer them to a tray lined with kitchen paper to soak up any excess oil and then toss each doughnut bite into the caster sugar.", "Enjoy while still warm." ], "author": null }
- Assistantjson
{ "data": "WWW" }