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": "Pumpkin French Toast", "description": "During those crisp months of autumn I want pumpkin morning, noon, and night. This is a perfect way to use pureed pumpkin and pumpkin's favorite spices-cinnamon, ginger, and cloves.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup pureed pumpkin (canned is just fine)", "1½ cups almond milk (or your favorite nondairy milk)", "2 tablespoons cornstarch", "2 teaspoons cinnamon", "1½ teaspoons ground ginger", "½ teaspoon ground cloves", "1 teaspoon pure vanilla extract", "8 slices sourdough sliced in 1-inch-thick pieces", "Cooking oil or cooking spray for the pan" ] } ], "instructions": [ "Mix together pumpkin, milk, cornstarch, spices, and vanilla.", "Spread out sourdough slices on a rimmed baking pan in a single layer.", "Pour the pumpkin mixture onto the bread and flip slices to coat.", "Let sit for 10 minutes, then flip over and let soak for 10 minutes more.", "Preheat a large, nonstick skillet (cast iron if you have it) over medium heat.", "Spray with cooking oil or drizzle a little oil into the pan.", "Cook about half the soaked bread for 5 to 7 minutes on one side and about 3 minutes on the other.", "When ready, the toast should be golden to medium brown and flecked with some darker spots.", "Keep warm on a plate covered with tin-foil while you cook the second batch.", "If not serving immediately, cover the toast and place in a 200°F oven for up to an hour.", "Serve with maple syrup and margarine, of course." ], "author": null }
- Assistant
{ "data": "WWW" }