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": "Pain perdu with strawberry jam", "description": "This is a gourmand's delight - a tasty dessert and, at the same time, a bargain. You could also make it with slices of brioche.", "subtitle": "Don't throw out stale bread! Turn it into a light dessert instead.", "ingredients": [ { "section": "The strawberry jam", "ingredients": [ "300 g/10½ oz strawberry jam", "200 g/7 oz caster (superfine) sugar" ] }, { "section": "The pain perdu", "ingredients": [ "4 eggs", "20 g/4 oz caster (superfine) sugar", "100 ml/3½ fl oz milk", "1 vanilla pod (bean)", "8 thick slices stale bread", "butter for frying" ] } ], "instructions": [ "In a large, non-metallic bowl, mix the strawberries with the sugar and leave to rest somewhere cool for 24 hours.", "The next day, put the fruit and sugar in a saucepan (preferably a copper one), bring to the boil and cook over quite a high heat for about 10 minutes, stirring often so the mixture doesn't catch or burn.", "Do this gently, to avoid crushing the strawberries - you want to keep them whole, if possible.", "Pour the jam into a small dish and set aside to cool.", "Whisk the eggs and sugar by hand, then add the milk and vanilla pod and mix together.", "Soak the slices of bread in this mixture for a few minutes.", "Meanwhile, heat some butter in a frying pan.", "Drain the slices of bread, then cook in the hot butter until golden, turning them once or twice.", "Serve hot with the jam." ], "author": "" }
- Assistantjson
{ "data": "FR" }