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": "Grilled vegetables with balsamic glaze", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup balsamic vinegar", "1 bunch asparagus, ends trimmed, cut into 1-inch pieces", "1 zucchini, cut into large dice", "1 yellow squash, cut into large dice", "1 sweet or yellow onion, cut into 1-inch slices", "2 bell peppers, seeded, ribs removed, and cut into 1-inch slices", "1/4 cup extra-virgin olive oil", "1/2 teaspoon salt", "1/2 teaspoon black pepper", "2 tablespoons finely chopped fresh parsley" ] } ], "instructions": [ "TO make the balsamic glaze, bring the vinegar to a boil in a small saucepan over medium-high heat.", "Turn the heat down to medium low and simmer until the balsamic is reduced by about half, 20 to 30 minutes.", "Remove from the heat, allow to cool, and reserve. (You can do this up to a week ahead of time; store in a covered container at room temperature.)", "TO grill the vegetables, preheat the grill to high heat (500°F).", "PLACE the asparagus, zucchini, squash, onion, and peppers in a large bowl and drizzle in half the olive oil.", "Toss or mix the vegetables with your hands until they are well coated, place in a grill basket.", "PLACE the basket on the grill and close the lid.", "Grill for 15 to 20 minutes, shaking the grill basket occasionally.", "You're done when the peppers and onions are charred on the edges and tender enough to eat.", "PLACE the vegetables in a serving bowl.", "Drizzle evenly with ¼ cup of the balsamic glaze and the remaining olive oil.", "Season with the salt and pepper and garnish with the parsley.", "Serve warm or at room temperature." ], "author": null }
- Assistantjson
{ "data": "IT" }