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": "Blackberry Gin Basil Smash", "description": null, "subtitle": "A smash is a cocktail composed of a base spirit, citrus juice, sweetener, and herbs. This mocktail has all of these elements, using basil as the herb and blackberries to add flavor, color, and texture to the drink.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "6 medium blackberries", "1 ounce Simple Syrup (see recipe in Chapter 1)", "3/4 ounce lemon juice", "2 ounces gin alternative", "6 basil leaves", "1 ounce club soda", "1 blackberry and 2 basil leaves for garnish" ] } ], "instructions": [ "1. Combine 6 blackberries and Simple Syrup in a cocktail shaker. (Putting the syrup in with the berries makes muddling easier.)", "2. Using a muddler or the back of a wooden spoon, press into blackberries, crushing the fruit into small pieces.", "3. Add lemon juice and gin alternative to the shaker.", "4. Grab 6 basil leaves, give them a nice slap to release their oils, then tear them into halves and add to the shaker.", "5. Add large cubes of ice to the shaker, cover it, and shake 10-12 seconds. This step not only chills the drink but also releases the oils from the herbs, incorporating them into the mixture.", "6. Fill a double rocks glass full with ice cubes.", "7. Using a fine-mesh strainer, double-strain the mixture into the glass. This filters out any remnants of fruit and herbs.", "8. Carefully top the mixture with club soda, pouring slowly to prevent it from fizzing over.", "9. Give the drink a light stir so that the mixture and club soda are well combined.", "10. Garnish with 1 blackberry and 2 basil leaves on a cocktail pick." ], "author": null }
- Assistantjson
{ "data": "WWW" }