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": "Bagel variations", "description": "Three delicious and easy ways to enjoy a bagel: sweet and warm with mascarpone and raisins, classic with smoked salmon and cream cheese, or savory with chorizo paste.", "subtitle": "", "ingredients": [ { "section": "Bagel with mascarpone and raisins", "ingredients": [ "bagel", "mascarpone", "balsamic vinegar", "raisins or sultanas" ] }, { "section": "Bagel with mascarpone and raisins - detailed ingredients", "ingredients": [ "3 tablespoons of raisins or sultanas", "2 tablespoons of balsamic vinegar", "2 tablespoons of warm water", "200g of mascarpone" ] }, { "section": "Bagel with cream cheese and smoked salmon", "ingredients": [ "Thickly-cut smoked salmon", "cream cheese", "a golden chewy bagel" ] }, { "section": "Optional additions for cream cheese and smoked salmon bagel", "ingredients": [ "bottled green peppercorns", "smoked streaky bacon", "dill or chives", "wasabi paste", "mackerel" ] }, { "section": "Bagel with chorizo paste", "ingredients": [ "soft, salami-type chorizo", "crème fraîche or olive oil" ] } ], "instructions": [ "Put 3 tablespoons of raisins or sultanas in a small bowl, pour in 2 tablespoons of balsamic vinegar and 2 tablespoons of warm water and leave the fruit to swell for 20 minutes or so, then drain, reserving some of the liquid.", "Split a bagel in half horizontally, lightly toast both cut edges then brush with some of the soaking liquid from the fruit.", "Mix 200g of mascarpone with the raisins and spread thickly over the hot bagel.", "Thickly-cut smoked salmon, generously-spread cream cheese, a golden chewy bagel.", "Try adding a few bottled green peppercorns to the cream cheese; tuck in a rasher or 2 of very crisp smoked streaky bacon; stir dill or chives into the cream cheese; toast the bagel on its cut sides, spread thinly with wasabi paste then add the cream cheese and salmon; or swap the salmon for mackerel.", "Peel a soft, salami-type chorizo and blitz it to a paste in a food processor, adding a little crème fraîche or olive oil to give it a spreading consistency. Slather generously on to split and toasted bagels." ], "author": null }
- Assistant
{ "data": "WNA" }