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": "Remy's Ratatouille", "description": "When the food critic is at the restaurant, Remy decides to prepare a magnificent and aesthetically beautiful dish: the ratatouille. If you have ever daydreamed about tasting this hearty and decadent veggie dish, now is your time to make the real thing! You may not have a rat clan to help, but this recipe is guaranteed to blow your mind away.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "Tomato paste - 6 oz.", "Onion, chopped - 1 cup", "Garlic, minced - 1/4 cup", "Olive oil 1 tablespoon", "Water - 3/4 cup", "Salt and pepper, to taste", "Eggplant, sliced - 1 cup", "Zucchini, sliced - 1 cup", "Yellow squash, sliced - 1 cup", "Red bell pepper, sliced - 1 cup", "Yellow bell pepper, sliced - 1 cup", "Olive oil - 3 tablespoons", "Thyme leaves - 1 teaspoon", "Mascarpone cheese - 3 tablespoons" ] } ], "instructions": [ "Preheat the oven to 375°F.", "Cover a baking dish with tomato paste", "Add onion, garlic, olive oil, and water. Mix well.", "Season with salt and pepper.", "Layer all the vegetables around the center to shape the ratatouille.", "Drizzle olive oil, then sprinkle thyme leaves.", "Bake at 375°F for 45 minutes.", "Serve with mascarpone cheese and enjoy!" ], "author": null }
- Assistantjson
{ "data": "FR" }