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": "Vermicelli Rice with Spinach and Cashews", "description": "Vermicelli rice is a dish of Lebanese origin that has been integrated into West African cuisines. This recipe is based on one that I learned from my mom, but I've added spinach to make it my own.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ cup (65 g) cashews", "¼ cup (60 ml) olive oil", "3 scallions, chopped", "2 garlic cloves, chopped", "1½ cup (250 g) white basmati rice, drained and rinsed", "4 ounces (115 g) vermicelli", "2 teaspoons curry powder", "1 teaspoon grated ginger", "1 teaspoon coconut sugar", "1 vegetable stock cube, crumbled", "14 ounces (400 g) fresh spinach", "2 tablespoons chopped parsley" ] } ], "instructions": [ "1. Heat a dry skillet over medium-high heat and lightly toast the cashews for about 2 minutes.", "2. Heat the oil in a frying pan over medium heat, add the scallions and garlic, and cook until softened, 5 minutes. Add the rice, vermicelli, curry powder, ginger, sugar, and stock cube, and stir. Add 2½ cups (600 ml) water, and bring to a boil. Cover and let cook for 3 minutes on high heat, then reduce the heat to low and cook for 7 minutes, until the rice is tender and has absorbed the water.", "3. Five minutes before the rice is ready, stir in the spinach and parsley. Add the roasted cashews just before serving." ], "author": null }
- Assistantjson
{ "data": "LB" }