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": "Pesto Scrambled Tofu with Grape Tomatoes", "description": "Pesto-not just for dinner anymore. Luscious basil, juicy cherry tomatoes, and sweet red onions make this a sultry dish, perfect for the morning after.", "subtitle": null, "ingredients": [ { "section": "For the pesto", "ingredients": [ "1 garlic clove, crushed", "1/3 cup pine nuts, toasted", "2 cups loosely packed fresh basil leaves (usually one bunch of basil)", "½ teaspoon salt", "3 tablespoons olive oil", "2 tablespoons water or vegetable broth", "1 teaspoon balsamic vinegar" ] }, { "section": "For the scramble", "ingredients": [ "2 tablespoons olive oil", "1 small red onion, quartered and sliced (not too thin)", "1 cup grape tomatoes", "2 garlic cloves, minced", "1 pound firm or extra-firm tofu", "Fresh black pepper" ] } ], "instructions": [ "PREPARE THE PESTO", "Chop the garlic in a blender or food processor.", "Add pine nuts, basil, and salt and pulse until finely chopped.", "With the food processor running, add the oil, water or broth, and balsamic vinegar.", "Blend until nice and smooth and velvety green.", "PREPARE THE SCRAMBLE", "Preheat a large skillet over medium-high heat.", "Add the oil and sauté the onion for about 3 minutes, until softened.", "Add the tomatoes and cook for about 5 minutes, stirring occasionally, until the tomatoes are cooked through and skins are starting to crinkle.", "Add the garlic and stir for about 30 seconds.", "Squeeze the excess water out of the tofu and break it off into the pan in bite-size pieces.", "Take care not to make the pieces too small; they will break up a bit in the pan.", "Cook for about 10 minutes, tossing occasionally.", "Mix in the pesto and dashes of pepper.", "Cook until the pesto is heated through, about 2 minutes.", "Serve immediately." ], "author": null }
- Assistantjson
{ "data": "IT" }