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": "Tartines", "description": "Découvrez ces délicieuses tartines garnies d'artichauts violets et d'asperges vertes, parfaites pour un apéritif raffiné.", "subtitle": "Purple artichoke and green asparagus tapenade tartines", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "4 large purple artichokes", "4 green asparagus spears", "olive oil", "4 slices of French-style country bread or multigrain bread", "4 tablespoons of tapenade", "8 caper berries marinated in vinegar", "sea salt", "freshly ground black pepper" ] } ], "instructions": [ "Break the stem off 4 large purple artichokes and remove the hard leaves.", "Cut the top off with a large sharp knife.", "Then cut around each artichoke with a small knife until you come to the tender leaves.", "Place them in water with the juice of 1 lemon as you go.", "Steam the artichokes for approximately 20 minutes.", "While the artichokes are cooking, peel and wash 4 green asparagus spears.", "Cut off the hard bottom section, and slice the asparagus into fine shavings with a mandoline slicer.", "Remove the choke with a small spoon, then cut each artichoke bottom into 4 or 5 thin slices.", "Lightly brush 4 slices of French-style country bread or multigrain bread with olive oil on one side only, then toast on the same side until golden.", "Spread 4 tablespoons of tapenade onto the slices of bread.", "Scatter the artichoke bottoms and slivers of asparagus on top, without pressing them down.", "Cut 8 caper berries marinated in vinegar in half and add them.", "Sprinkle a few crystals of sea salt and a few drops of olive oil and a generous twist of freshly ground black pepper." ], "author": "" }
- Assistant
{ "data": "FR" }