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": "Coco Bread", "description": "Now that I've confessed my love for Sweet Bread, I'll tell you something else: I often find myself falling for Sweet Bread's cousin, Coco Bread. I love coco\nbread's sweet coconut aroma, its golden-brown color, and its comforting flavor. It can be eaten as is or used to make French toast. If you love sweet and\nsalty flavors, use Coco Bread to make sandwiches.", "subtitle": "Makes 4 rolls", "ingredients": [ { "section": "For the recipe", "ingredients": [ "One 4-ounce (7 g) packet active dry yeast", "1 cup (240 ml) coconut milk, warmed", "¼ cup (60 ml) coconut oil, plus more for oiling", "2 tablespoons coconut sugar", "2 tablespoons granulated sugar", "1 teaspoon salt", "3½ cups (480 g) all-purpose flour, plus more for kneading", "½ cup (50 g) unsweetened shredded coconut", "1 teaspoon ground nutmeg" ] } ], "instructions": [ "Oil a baking sheet.", "Mix the yeast and coconut milk in a large bowl. Let rest for about 1 minute.", "Add the oil, coconut sugar, granulated sugar, and salt. Mix well to dissolve the sugar, then add the flour, coconut, and\nnutmeg. Use your fingers to mix the ingredients together to form a sticky dough.", "Place the dough on a clean floured work surface and knead to form a smooth dough, about 5 minutes.", "Return the dough to the bowl, cover with plastic wrap, and let rise for 20 minutes.", "Divide the dough into 4 equal parts and roll each one into 2-inch-thick (5 cm) buns.", "Score the buns with a fork and let rest for 10 minutes. Preheat the oven to 375°F (190°C).", "Place the buns on the baking sheet and bake them for about 25 minutes, until golden brown." ], "author": null }
- Assistant
{ "data": "WNA" }