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": "Owl Cookies", "description": "", "subtitle": "", "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": [ "Step 1\nIn a small saucepan combine 3/4 cup of the candies and milk. Melt over low heat, stirring until smooth.\nRemove from heat.", "Step 2\nPrepare cookie mixes according to package directions. Stir melted chocolate into half the dough. Form\nchocolate dough into two 12-inch long rolls about 1 inch in diameter. Wrap in wax paper or foil. Chill until\nfirm, about 2 hours.", "Step 3\nDivide plain dough in half. On a well-floured surface, roll each plain half out to a 12 x 6 inch rectangle. Place a\nchocolate roll on long edge. Roll up, pressing doughs lightly together so plain dough encases chocolate roll.\nRepeat with remaining dough.", "Step 4\nWrap each roll in wax paper or foil. Chill about 2 hours until firm. Preheat oven to 375 F (190 C).", "Step 5\nCut each roll into 1/4 inch slices. Place 2 slices so they are touching on greased baking sheet. In the center of\neach chocolate circle, place one of the remaining candies for eye. Where the slices touch, place a cashew to\nform nose.", "Step 6\nBake until the plain cookie is lightly browned, 8 to 10 minutes. Cool cookies on baking sheets 2 to 3 minutes.\nRemove and cool on wire racks." ], "author": "" }
- Assistantjson
{ "data": "WWW" }