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": "Honey Crunch Cake", "description": "Like watching a stellar nighttime spectacular from the fifteenth floor viewing deck connected to California Grill, this sweet and crunchy cake is the perfect finale to a fabulous meal.", "subtitle": "Sweet Endings and Desserts", "ingredients": [ { "section": "Sponge Cake", "ingredients": [ "1/2 cup milk", "1/2 cup unsalted butter, cut into pieces", "1/2 cups all-purpose flour", "2 teaspoons baking powder", "3 large eggs", "1/4 teaspoon salt", "1 cup sugar", "3/4 teaspoon almond extract", "1/4 teaspoon vanilla extract" ] } ], "instructions": [ "Preheat oven to 375°F. Grease and flour a 9-inch round cake pan.", "Combine milk and butter in a 11½/2-quart saucepan and cook over low heat, stirring occasionally, until butter is completely melted. Remove from heat.", "In a separate bowl, sift together the flour and baking powder. Set aside.", "In an electric mixer with a whip attachment, mix eggs.", "Whip in salt, then sugar in a steady stream. Continue to whip for about 30 seconds.", "Add almond extract and vanilla extract. Gently whip in milk and butter mixture, then gradually add flour mixture, mixing until smooth.", "Pour batter into prepared 9-inch pan. Bake 20 to 25 minutes, or until the cake is lightly browned and a toothpick inserted in the center comes out clean." ], "author": null }
- Assistant
{ "data": "WWW" }