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": "Herbed Veggie Salad with Pita Bread", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 English cucumber", "6 scallions", "3/4 lb tomatoes, chopped", "1/4 lb golden tomatoes, cut in half", "salt", "3 pita bread, day old", "1 head romaine lettuce", "1 bunch flat leaf parsley, roughly chopped", "1 bunch of fresh mint", "1 C. purslane, rinsed and drained", "2/3 C. extra virgin olive oil", "1/2 C. lemon juice", "1 tsp ground sumac", "freshly cracked black pepper", "lemon wedge, for garnish" ] } ], "instructions": [ "In a non-reactive bowl, add the lemon juice, oil, sumac and black pepper and beat well and keep it aside.", "Chop the cucumber, tomato and scallion in a large bowl.", "Sprinkle with salt and keep it aside for about 10 minutes.", "Toast the pita bread and after cooling, break them into 1-inch pieces and place into serving bowl.", "Place the cucumber mixture over the bread pieces and keep it aside for about 10 minutes.", "Cut the purslane leaves into thin strips and chop the lettuce, mint and parsley in a bowl.", "Add the lettuce mixture in the bowl with the bread mixture", "Add the vinaigrette and toss to coat and serve immediately." ], "author": null }
- Assistantjson
{ "data": "WWW" }