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": "Sweet Potato Salad with Mixed Baby Greens and Cashews", "description": "This salad is easy to customize, so don't hesitate to do so. Try replacing the cashews with roasted peanuts or the mixed shoots with mesclun greens or fresh baby spinach leaves.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons sesame oil", "2 teaspoons garlic powder", "1 teaspoon paprika", "1 teaspoon herbes de Provence", "Salt", "Black pepper", "2 medium sweet potatoes, diced", "½ cup (65 g) cashews", "½ red onion", "Juice of 1 lemon", "1 tablespoon pomegranate molasses", "1 handful of mixed baby greens" ] } ], "instructions": [ "Preheat the oven to 350°F (180°C). Line a baking sheet with parchment paper.", "Mix 1 tablespoon of the oil, 1 teaspoon of the garlic powder, the paprika, herbes de Provence, salt, and pepper in a large bowl. Add the sweet potatoes and toss well to coat.", "Transfer the potato mixture to the baking sheet and bake for about 35 minutes, until golden brown. Let cool.", "While the potatoes are cooking, heat a dry skillet over medium-high heat and lightly toast the cashews, 5 minutes. Set aside.", "Mix together the onion, lemon juice, pomegranate molasses, the remaining 1 tablespoon sesame oil, and the remaining 1 teaspoon garlic powder in a small bowl to make a vinaigrette. Add salt and pepper to taste.", "Place the greens in a large bowl, then add the vinaigrette and toss.", "To serve, place the greens on a plate, add the roasted potatoes and top with the cashews." ], "author": null }
- Assistantjson
{ "data": "WWW" }