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": "Monte Cristo", "description": "As a longtime Disneyland favorite that's well-known in New Orleans Square in Disneyland, the Monte Cristo—for a time—also made its way to Grizzly Peak in Disney California Adventure.", "subtitle": "A Disney Classic", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 egg", "1 3/4 cups plus 2 tablespoons water", "1 3/4 cups all-purpose flour", "1/4 teaspoon salt", "1 teaspoon baking powder", "8 slices egg bread (challah works well), sliced 1/2 inch thick", "8 thin slices ham", "8 thin slices turkey", "8 thin slices Swiss cheese", "3 cups canola oil", "Confectioners' sugar", "Blackberry preserves" ] } ], "instructions": [ "Line cookie sheet with paper towels; set aside.", "Whisk the egg and water together in a mixing bowl. Add flour, salt, and baking powder and whisk thoroughly for 2 to 3 minutes, or until smooth, scraping side of bowl.", "On one slice of bread, arrange 2 slices of ham, turkey, and cheese, covering the bread evenly. Place another slice of bread on top and slice each sandwich in half diagonally.", "Carefully heat oil to between 365°F and 375°F in a 10-inch pan. Do not let the oil reach a higher temperature than this; if the oil starts to smoke, turn the heat down. Dip half of the sandwich into the batter, allowing excess to drain, and very carefully place into the oil.", "Repeat with the other sandwich half. Cook 3 minutes on each side, or until golden brown. Place the cooked sandwich on the prepared cookie sheet in a warm oven until ready to serve. Repeat with the other three sandwiches. Cook one at a time, and allow the oil to reach the desired temperature between each.", "Sprinkle with confectioners' sugar, and serve with blackberry preserves on the side." ], "author": null }
- Assistantjson
{ "data": "WNA" }