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": "FONIO AND PAPAYA SALAD", "description": "This salad features a delicious, much-loved West African grain that's still underappreciated in the West: fonio. In addition to being gluten-free, it's also packed with the B vitamins (thiamine, riboflavin, and niacin) and minerals, including iron, copper, and magnesium. It's also a good source of fiber and plant protein. I often eat steaming-hot fonio in place of rice.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup (200 g) fonio, rinsed", "Juice of 1 lemon", "Pinch of ground cumin", "2 tablespoons olive oil", "Salt", "Black pepper", "2 tomatoes, diced", "1 firm papaya, peeled and diced", "½ red onion, minced", "½ cup (65 g) roasted cashews", "1/4 cup (50 g) chopped mint leaves", "½ bunch flat-leaf parsley, chopped" ] } ], "instructions": [ "1. Place the fonio in a small saucepan with 2 cups (480 ml) water. Bring to a boil. Add a pinch of salt, stir, cover, and reduce the heat to low for 1 minute. Turn off the heat and let sit, covered, for 5 minutes. Fluff with a fork, then transfer to a large bowl to cool.", "2. Mix the lemon juice, cumin, salt, and pepper in a small bowl. Slowly add the olive oil, whisking to emulsify.", "3. Add the tomatoes, papaya, onion, cashews, mint, and parsley to the fonio. Drizzle with the dressing, toss to mix, and serve." ], "author": null }
- Assistant
{ "data": "WAF" }