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": "RED CABBAGE SALAD WITH MANGO AND PEANUTS", "description": "In West Africa, it's common to start a meal with a large salad full of different types of raw vegetables, especially at family gatherings. In the blink of an eye, this red cabbage salad will become a must-have. And while you might be tempted to avoid salads to save room for the delicious main courses that are sure to follow, I bet you can't resist this one!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 small red cabbage, outer leaves removed, halved, and thinly sliced", "1 ripe but firm mango, peeled and thinly sliced", "1 bunch cilantro, chopped", "1 bunch mint, leaves chopped", "1 green chile pepper (such as jalapeño), chopped", "1 scallion, chopped", "Juice of 1 lemon", "2 tablespoons sesame oil", "1 teaspoon garlic powder", "½ cup (75 g) peanuts", "Salt", "Black pepper" ] } ], "instructions": [ "1. Bring a large pot of water to a boil. Fill a bowl with ice water. Blanch the cabbage in the pot for about 1 minute, then transfer immediately to the bowl of ice water to stop further cooking. Drain the cooled cabbage on paper or kitchen towels. Transfer the cabbage to a large bowl.", "2. Add the mango, cilantro, mint, chile, and scallion to the bowl.", "3. To make the dressing, mix the lemon juice, sesame oil, garlic powder, salt, and black pepper together in a small bowl.", "4. Pour the dressing over the red cabbage and toss to combine the flavors. Top with peanuts. Serve immediately or place in the refrigerator for 1 hour before serving." ], "author": null }
- Assistantjson
{ "data": "WAF" }