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": "Spicy Pineapple Margarita", "description": "Spicy margaritas are the perfect introduction to mocktails as they are relatively easy to make and taste very close to the real thing. This version uses jalapeño slices for the heat, which is balanced out by the lime juice, orange-infused simple syrup, and pineapple juice. Chili-lime seasoning is used on the rim to give the drink a nice pop of color, an extra kick, and a nice spicy aroma.", "subtitle": "Spicy margaritas are the perfect introduction to mocktails as they are relatively easy to make and taste very close to the real thing.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon chili-lime seasoning for glass rim", "1 lime wedge for glass rim", "1 jalapeño slice", "1 ounce lime juice", "1 ounce Orange Simple Syrup (see recipe in Chapter 1)", "2 ounces tequila alternative", "2 ounces pineapple juice", "1 small pineapple wedge and 1 jalapeño slice for garnish" ] } ], "instructions": [ "Place chili-lime seasoning on a small plate.", "Wet half the rim of a rocks glass using lime wedge.", "Dip that wet part of the rim into the chili-lime seasoning. (Only partially rimming the glass gives you and your guests the option of enjoying the margarita with or without the chili-lime seasoning.)", "Set the glass aside.", "In a cocktail shaker, add 1 jalapeño slice and lime juice.", "Muddle jalapeño and lime juice together.", "Add Orange Simple Syrup, tequila alternative, and pineapple juice.", "Add large cubes of ice, cover the shaker, and shake vigorously 10-12 seconds.", "Using a fine-mesh strainer, double-strain the mixture into the chili-lime seasoning-rimmed glass. This removes any small bits of jalapeño, which can be important if you want to avoid spicy surprises in your mocktail.", "Carefully add a few cubes of ice into the rocks glass and garnish with pineapple wedge and 1 jalapeño slice on a cocktail pick." ], "author": "" }
- Assistantjson
{ "data": "MX" }