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": "Bread & Pistachio Pudding", "description": null, "subtitle": null, "ingredients": [ { "section": "BREAD & PISTACHIO PUDDING", "ingredients": [ "10 slices white bread, old", "2 C. double cream", "4 C. milk", "cardamom powder", "3 tbsps rose water", "5 tsps cornflour", "1/2 C. sugar", "1/2 C. pistachios, chopped" ] }, { "section": "for sugar syrup", "ingredients": [ "2 C. sugar", "1/2 tsp saffron thread", "1/2 tsp cardamom powder", "2/3 C. water", "1/2 lemon, juice of" ] } ], "instructions": [ "For the sugar syrup in a pan, add all the ingredients on medium-low heat and cook, stirring till sugar dissolves completely.", "Cook till desired thickness of the sugar syrup and remove from heat.", "Trim the crusts of the bread slices and arrange in the bottom of a buttered glass baking dish, reserving 2-3 slices.", "Place the sugar syrup over the slices evenly.", "In a pan, add 3 1/4 C. of the milk, cream, sugar, saffron, cardamom and rosewater and bring to a boil. stirring continuously till the sugar dissolves completely.", "Meanwhile in a bowl, mix together the remaining milk and cornstarch.", "Slowly, add the cornstarch mixture in the boiling cream mixture, stirring continuously till the mixture becomes thick.", "Place the cream mixture over the bread slices evenly.", "Arrange the remaining slices on top and sprinkle with pistachios.", "Refrigerate to cool completely before serving." ], "author": null }
- Assistantjson
{ "data": "WAS" }