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": "Harvest Bowl", "description": "A nod to its autumnal ingredients, this harvest bowl is the perfect way to feature caramelized roasted root vegetables in a satisfying salad. We especially liked sweet potatoes for their light earthiness and sweet notes. To carry the harvest theme all the way through, we whisked up a cider and caraway vinaigrette, toasting and cracking the seeds but leaving them whole for appealing texture. For toppings, feta cheese added briny contrast and dried cranberries added color and more tartness.", "subtitle": null, "ingredients": [ { "section": "For the vinaigrette", "ingredients": [ "4 teaspoons cider vinegar", "1 tablespoon water", "2 teaspoons Dijon mustard", "1 teaspoon caraway seeds, toasted and cracked", "½ teaspoon table salt", "½ teaspoon pepper", "2 tablespoons extra-virgin olive oil" ] }, { "section": "For the salad", "ingredients": [ "4 ounces (4 cups) baby kale", "1 cup Roasted Sweet Potatoes", "½ Granny Smith apple, cored and cut into -inch pieces", "2 ounces feta cheese, crumbled (½ cup)", "2 tablespoons dried cranberries" ] } ], "instructions": [ "Whisk vinegar, water, mustard, caraway seeds, salt, and pepper together in bowl.", "While whisking constantly, slowly drizzle in oil until combined.", "Toss kale with half of vinaigrette to coat, then season with salt and pepper to taste.", "Divide among individual serving bowls then top with sweet potatoes and apple.", "Drizzle with remaining dressing and sprinkle with feta and dried cranberries.", "Serve." ], "author": null }
- Assistantjson
{ "data": "WWW" }