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": "Autumn Sparkler", "description": "The Autumn Sparkler draws inspiration from a mimosa but uses ginger ale instead of champagne. For an extra flair, serve it in a champagne flute rimmed with cinnamon sugar. This highlights the hints of toasted cinnamon and cloves coming from the dark rum alternative.", "subtitle": null, "ingredients": [ { "section": "For the glass rim", "ingredients": [ "1 tablespoon granulated sugar", "1 teaspoon ground cinnamon", "1 teaspoon Simple Syrup (see recipe in Chapter 1)" ] }, { "section": "For the recipe", "ingredients": [ "1 ounce dark rum alternative", "2 ounces chilled apple cider", "4 ounces ginger ale" ] } ], "instructions": [ "On a small plate, combine sugar and cinnamon.", "Pour the Simple Syrup onto a separate small plate.", "Wet half the rim of a champagne flute by dipping it in Simple Syrup.", "Dip the wet rim into cinnamon-sugar combination.", "Set the champagne flute aside.", "Using a Boston shaker, combine rum alternative, apple cider, and ginger ale in the larger tin.", "Put large cubes of ice in the smaller tin of the shaker, then place the Hawthorne strainer over it.", "Using the rolling technique (see Chapter 1), pour the contents of the larger tin over the smaller tin with the strainer.", "Then gently pour the mixture from the smaller tin back into the larger tin, holding the ice back with the strainer.", "Do this four more times to effectively combine and chill the mixture.", "Pour the mixture into the cinnamon sugar-rimmed champagne flute." ], "author": null }
- Assistant
{ "data": "WWW" }