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": "Lychee Elderflower Fizz", "description": "The lychee fruit is the star of this mocktail recipe. It provides a subtle sweetness and hints of floral flavors that work well with the botanicals of the gin alternative. The mint adds a burst of freshness that makes this drink perfect for hot summer days.", "subtitle": "The lychee fruit is the star of this mocktail recipe.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 lychee fruit (canned or fresh, peeled and seeded)", "1 1/2 ounces lychee syrup (if you're using canned lychees) or regular Simple Syrup (see recipe in Chapter 1)", "1/2 ounce lime juice", "2 ounces gin alternative", "8 mint leaves", "7.5 ounces elderflower tonic water", "2-3 mint sprigs and 1 lychee fruit for garnish" ] } ], "instructions": [ "In a cocktail shaker, muddle 4 lychees and lychee syrup together. Add lime juice and gin alternative to the shaker.", "Give mint leaves a nice slap on the palm of your hand, and then add them to the cocktail shaker.", "Note that you don't want to muddle the mint leaves with the fruit since that would release bitter flavors.", "Add large cubes of ice to the shaker, cover it, and shake 10-12 seconds. The shaking releases the oils from the mint leaves without making the drink bitter.", "Fill a double rocks glass 2 full with ice cubes. Using a fine-mesh strainer, double-strain the mixture into the glass. This step filters out any remnants of lychee and mint leaves. Top with tonic water.", "Make a mint bouquet by pinching or twisting mint sprigs together. Lightly slap the bouquet around the mouth of the glass to release its oils and aroma.", "Garnish the drink with the mint bouquet and 1 lychee fruit, perhaps on a cocktail pick." ], "author": "" }
- Assistant
{ "data": "WAS" }