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": "Lemon Pepper Tofu", "description": "This ridiculously easy recipe provides a fast way to enjoy flavorful tofu. Perfect for brunch, it can be added to burritos, served alongside pancakes, in sandwiches, over salads, or on top of Polenta Rancheros. A true lifesaver for time-consuming brunches, this tofu can be baked in the oven with minimal effort – no pressing required! The recipe provides amounts, but once familiar, ingredients can be eyeballed. ", "subtitle": "Serves 2 as a main, 4 as a side", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 pound extra-firm tofu, sliced into 8 pieces widthwise", "2 teaspoons olive oil", "1 teaspoon Bragg Liquid Aminos (or soy sauce, if you like)", "2 garlic cloves", "2 tablespoons lemon pepper (with salt)" ] } ], "instructions": [ "Preheat the oven to 350°F.", "Spray a baking sheet with cooking spray or lightly coat with oil.", "Poke each slice of tofu with a fork 3 to 4 times to let the flavors seep in.", "Drizzle the olive oil and liquid aminos on a plate.", "Use a microplane to grate the garlic into the mix. If you don't have a microplane, then just mince the garlic to as close to a paste as you can.", "Dredge each slice of tofu and lay them out on the plate.", "Sprinkle one tablespoon of the lemon pepper over the tofu and give it a quick rub into the tofu.", "Flip the slices and sprinkle on the second tablespoon.", "Now rub each slice really well-don't forget about the edges of the tofu, get those, too. I usually spend about 15 seconds on each slice.", "Place tofu in a single layer on the baking sheet.", "Bake for 20 minutes on one side, flip over, and bake another 10 minutes.", "Remove from oven and cover with tinfoil until ready to serve." ], "author": null }
- Assistant
{ "data": "WWW" }