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": "Halloween Ghost Cookies", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup butter", "1 ½ cups confectioners' sugar", "1 egg", "1 teaspoon vanilla extract", "2½ cups all-purpose flour", "1 teaspoon baking soda", "1 teaspoon cream of tartar", "1/4 teaspoon salt" ] }, { "section": "Icing", "ingredients": [ "1 cup confectioners' sugar", "2 teaspoons milk, plus more if needed", "2 teaspoons light corn syrup, or more as needed", "1/4 teaspoon vanilla extract", "1 (12 ounce) package miniature semisweet chocolate chips" ] } ], "instructions": [ "Beat butter in a bowl with an electric mixer until creamy.", "Add 1 1/2 cups confectioners' sugar gradually, beating until light and fluffy.", "Beat in egg and 1 teaspoon vanilla extract.", "Combine flour, baking soda, cream of tartar, and salt in a second bowl.", "Add flour mixture to the creamed butter mixture and mix to combine.", "Wrap in plastic wrap and chill in the refrigerator for at least 1 hour.", "Preheat oven to 400 degrees F (200 degrees C).", "Dust a work surface with flour and roll out dough into a thin circle.", "Cut out tulip shapes; if your tulip cookie cutter has a stem, cut the stem off with a knife, so you have a stemless tulip shape.", "Arrange cut-out cookies on ungreased baking sheets.", "Bake in the preheated oven until lightly browned, 6 to 8 minutes.", "Remove from baking sheets carefully and transfer to wire racks.", "Cool completely, about 15 minutes.", "Stir 1 cup confectioners' sugar and milk together in a small bowl until smooth.", "Beat in corn syrup and 1/4 teaspoon vanilla extract until icing is smooth and glossy.", "Add more corn syrup if icing is too thick.", "Spoon icing into a piping bag with a small plain tip.", "Pipe icing around the edge of each cookie to create a border.", "Fill in the middle completely with icing.", "Stick 2 chocolate chip cookies into the wet icing for the eyes.", "Let cookies stand until icing dries, about 1 hour." ], "author": null }
- Assistantjson
{ "data": "WWW" }