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": "Owl Cookies", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1/4 cups candy-coated milk chocolate pieces", "2 tablespoons milk", "24 ounces dry sugar cookie mix", "1 cup cashew halves" ] } ], "instructions": [ "In a small saucepan combine 3/4 cup of the candies and milk.", "Melt over low heat, stirring until smooth.", "Remove from heat.", "Prepare cookie mixes according to package directions.", "Stir melted chocolate into half the dough.", "Form chocolate dough into two 12-inch long rolls about 1 inch in diameter.", "Wrap in wax paper or foil.", "Chill until firm, about 2 hours.", "Divide plain dough in half.", "On a well-floured surface, roll each plain half out to a 12 x 6 inch rectangle.", "Place a chocolate roll on long edge.", "Roll up, pressing doughs lightly together so plain dough encases chocolate roll.", "Repeat with remaining dough.", "Wrap each roll in wax paper or foil.", "Chill about 2 hours until firm.", "Preheat oven to 375 F (190 C).", "Cut each roll into 1/4 inch slices.", "Place 2 slices so they are touching on greased baking sheet.", "In the center of each chocolate circle, place one of the remaining candies for eye.", "Where the slices touch, place a cashew to form nose.", "Bake until the plain cookie is lightly browned, 8 to 10 minutes.", "Cool cookies on baking sheets 2 to 3 minutes.", "Remove and cool on wire racks." ], "author": null }
- Assistant
{ "data": "WWW" }