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": "Bubbly Berry Lavender", "description": null, "subtitle": "This drink is similar to a Bellini except it uses berries and has a floral touch, which is perfect if you don't like peaches. This recipe will also allow you to experiment with different variations of the drink. Use whatever berries you have in your refrigerator and mix them with a simple syrup to make a purée. With this recipe as a template, you can build a bubbly mocktail of your choosing.", "ingredients": [ { "section": "Berry Lavender Purée", "ingredients": [ "3 medium strawberries", "1/4 cup blueberries", "½ ounce Lavender Simple Syrup (see recipe in Chapter 1)" ] }, { "section": "Bubbly Berry Lavender", "ingredients": [ "4 ounces Berry Lavender Purée", "8 ounces chilled nonalcoholic sparkling brut", "1 medium strawberry, cut in half, and 2-3 blueberries for garnish" ] } ], "instructions": [ "1. Make Berry Lavender Purée by placing berries and Lavender Simple Syrup into a food processor or a blender and blending until you get a smooth consistency.", "Put the purée in the refrigerator to chill at least 30 minutes.", "2. When Berry Lavender Purée is chilled, pour 2 ounces purée into each of two champagne flutes.", "3. To make Bubbly Berry Lavender, fill each champagne flute with 4 ounces nonalcoholic sparkling brut.", "Do this carefully and slowly to prevent it from fizzing over.", "4. Gently stir the mixture with a bar spoon or a regular spoon to combine the ingredients.", "5. Finally, skewer strawberry pieces and blueberries on two cocktail picks and use these to garnish the champagne flutes." ], "author": null }
- Assistantjson
{ "data": "WWW" }