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": "Shiitake Dill Frittata", "description": "T\nhe mushroom-dill combination is one of my\nfavorites. I commonly use cremini or button\nmushrooms, but I used shiitake in this\nrecipe to switch things up and add a chewy bite to the\nfrittata.", "subtitle": "The mushroom-dill combination is one of my favorites. I commonly use cremini or button mushrooms, but I used shiitake in this recipe to switch things up and add a chewy bite to the frittata.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon olive oil", "4 garlic cloves, minced", "6 ounces shiitake mushrooms, thinly sliced (2 cups)", "1 pound firm or extra-firm tofu", "1 tablespoon soy sauce", "1 teaspoon prepared mustard (Dijon or yellow, whatever you got)", "1/4 teaspoon turmeric", "Several dashes fresh black pepper", "1/4 cup nutritional yeast", "¼ cup loosely packed chopped fresh dill", "1/4 teaspoon salt, or to taste" ] } ], "instructions": [ "Preheat the oven to 400°F.", "Preheat a large, heavy-bottomed pan over medium-low heat.", "Sauté the garlic in olive oil until fragrant, about 30 seconds.", "Add the shiitake mushrooms and cook until softened, stirring occasionally, about 7 minutes.", "Meanwhile, prepare your frittata base.", "Give the tofu a squeeze over the sink to remove a little of the water.", "Use your hands to crumble and squeeze it in a large mixing bowl, until it has the consistency of ricotta cheese (about 3 minutes).", "Make sure to mash it really well, leaving no large chunks, or you may have issues with getting it out of the pan in one piece.", "Add the soy sauce, mustard, turmeric, black pepper, yeast, and dill to the tofu and mix well.", "When the mushrooms are ready, incorporate the mushroom mixture into the tofu.", "Taste for salt.", "Lightly grease an 8-inch pie plate and firmly press your frittata mixture into it.", "Bake for 20 minutes, until the frittata is firm and lightly browned on top.", "Let cool for about 3 minutes, then invert onto a plate and serve." ], "author": null }
- Assistant
{ "data": "WWW" }