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": "Spaghetti Squash with Basil and Parmesan", "description": "When roasted, spaghetti squash transforms into noodle-like strands that work equally well as a bowl topping or base. Choose a firm squash with an even, pale-yellow color. Avoid greenish-tinged squashes, which are immature, and those that yield to gentle pressure, which are old. This recipe can be easily doubled; use a 13 by 9-inch baking dish instead of an 8-inch baking dish.", "subtitle": "Makes 2 cups, enough for 4 bowls as a topping", "ingredients": [ { "section": "For the recipe", "ingredients": [ "spaghetti squash (1x pounds), halved lengthwise and seeded", "1 tablespoon extra-virgin olive oil or vegetable oil, divided", "¼ teaspoon table salt", "½ teaspoon pepper", "2 tablespoons grated Parmesan cheese", "1 teaspoon chopped fresh basil", "½ teaspoon lemon juice" ] } ], "instructions": [ "Adjust oven rack to middle position and heat oven to 450 degrees.", "Brush cut sides of squash with 1½ teaspoons of the oil and sprinkle with salt and pepper.", "Lay squash cut sides down in 8-inch baking dish.", "Roast squash until just tender and tip of paring knife can be slipped into nesh with slight resistance, 25 to 30 minutes.", "Flip squash over and let cool slightly.", "Holding squash with clean dish towel over large bowl, use fork to scrape squash flesh from skin while shredding it into fine pieces.", "Drain excess liquid from bowl, then gently stir in Parmesan, basil, lemon juice, and remaining 1½ teaspoons oil.", "Season with salt and pepper to taste." ], "author": "" }
- Assistant
{ "data": "IT" }