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": "TRIPLE CHOCOLATE TRUFFLES", "description": "These quick chocolate truffles use just four ingredients - a mixture of white, milk and dark chocolate and double cream create an\nabsolute wonder of deliciousness!", "subtitle": null, "ingredients": [ { "section": "WHITE CHOCOLATE LAYER", "ingredients": [ "• 225g white chocolate, chopped", "75ml double cream" ] }, { "section": "MILK CHOCOLATE LAYER", "ingredients": [ "• 200g milk chocolate, chopped", "⚫ 100ml double cream" ] }, { "section": "DARK CHOCOLATE LAYER", "ingredients": [ "• 150g dark chocolate, chopped", "150ml double cream" ] }, { "section": "DECORATION", "ingredients": [ "• 200g chocolate of your choice, melted" ] } ], "instructions": [ "Line a 20cm square tin with parchment paper or clingfilm.", "Add each chocolate to a separate bowl.", "Pour all of the double cream into a small pan and heat until just before boiling point. It should be steaming, and bubbling slightly around the edge of\nthe pan, but not boiling.", "Pour the hot cream over the chocolates, making sure to stick to the correct amounts (pour it into a measuring jug first).", "Let\neach bowl sit for 5 minutes to let the cream melt the chocolate.", "After 5 minutes, stir each bowl until the mixture is smooth.", "If any lumps of chocolate\nremain, briefly heat in the microwave until smooth or return to a pan to melt.", "Pour each type of chocolate into the lined tin and layer, or swirl together, then place into the freezer and freeze until solid.", "Carefully remove the mixture from the tray and cut into small squares, then dunk each square into the melted chocolate.", "Place on to a lined tray and\nchill in the fridge for about 30 minutes to make sure the chocolate sets." ], "author": null }
- Assistant
{ "data": "WWW" }