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": "ARTICHOKE AND OLIVE CHICKEN LEGS", "description": "", "subtitle": "This Mediterranean-inspired dish is for the dedicated Kalamata olive-lovers out there. You can enjoy a generous amount of these briny, buttery-textured fruits, guilt-free, in every serving. As you might guess, they are rich in the same monounsaturated healthy fat found in olive oil. Eat up!", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 teaspoons garlic powder", "1 teaspoon salt", "½ teaspoon black pepper", "8 chicken legs, skin removed (see Tip)", "2 medium white onions, roughly chopped", "2 cans (14 ounces each) Whole30-compliant whole artichoke hearts, drained and halved", "1½ cups pitted Whole30-compliant Kalamata olives", "1 lemon, cut into wedges", "3 sprigs fresh thyme, plus additional leaves for garnish" ] } ], "instructions": [ "IN a small bowl, combine the garlic powder, salt, and pepper.", "Rub the chicken with the seasoning.", "Place the onions, artichoke hearts, and olives in a 6-quart slow cooker.", "Add the chicken.", "Top with lemon wedges and thyme sprigs.", "COVER and cook on low for 6 to 7 hours or on high for 3 to 3½ hours.", "Remove and discard the lemon wedges and thyme.", "Serve the chicken with the artichokes, onions, and olives.", "Sprinkle with additional thyme." ], "author": "" }
- Assistant
{ "data": "WAS" }