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": "Chocolate Truffles", "description": "This recipe transforms chocolate chips into decadent truffles, ideal for any special day or for a hostess gift.", "subtitle": "surprise your kids or your honey on Valentine's Day", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1½ tablespoons shortening (see page 7)", "¼ cup (60 ml) coconut milk creamer", "1 cup (240 g) chocolate chips", "½ teaspoon Vanilla Extract (page 288)", "¼ cup (26 g) natural unsweetened cocoa powder" ] } ], "instructions": [ "Melt the shortening over low heat in a small saucepan. Add the coconut milk creamer. Increase the heat to medium and bring just to a boil, stirring occasionally.", "Remove the saucepan from the heat and stir in the chocolate chips and vanilla. Stir vigorously until the mixture is smooth and glossy.", "Transfer the chocolate to a large mixing bowl and refrigerate it for up to an hour and a half, until it is hardened but still pliable. Soften it using the paddle attachment of a mixer, for about 20 seconds on low speed.", "Scoop out small portions of chocolate, about 2 teaspoons (or desired size), and place them on a sheet of parchment paper. Use cool, dry hands to roll each chocolate into a ball using very light pressure. If your hands start to get too warm or the chocolate starts to soften, refrigerate the chocolates for a few minutes and start again.", "Place the cocoa powder in a shallow dish. Roll the truffles in the cocoa powder, to lightly coat them on all sides. Refrigerate the truffles in an airtight container for up to 2 weeks." ], "author": "" }
- Assistant
{ "data": "WWW" }