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": "Chickpea Salad", "description": "Tamarind paste has a distinctive, tart flavor. It can be purchased in Asian and Latin American grocery stores or online. Chaat masala is a spice blend available in specialty food stores and some grocery stores or online.", "subtitle": "Mains and Sides", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons olive oil", "1 tablespoon minced garlic", "1 tablespoon minced fresh ginger", "1/2 small jalapeño pepper, seeds removed, minced", "1 teaspoon tamarind paste, dissolved in 3 tablespoons water", "1/4 teaspoon chaat masala, optional", "1/2 medium yellow onion, diced", "2 (14.5-ounce) cans chickpeas, drained and rinsed", "2 to 3 tablespoons fresh lime juice, divided", "coarse salt, to taste", "freshly ground black pepper, to taste", "1/2 cucumber, peeled, seeded, and diced", "1 large tomato, seeds removed, diced", "1/2 bunch cilantro, stems removed, minced" ] } ], "instructions": [ "Carefully heat oil in a small sauté pan over medium heat.", "Add garlic, ginger, and jalapeño; cook until garlic is light gold.", "Set aside until mixture is room temperature.", "Whisk in tamarind paste and chaat masala.", "Stir in onion.", "Refrigerate until cold.", "Add chilled spice mixture to chickpeas, tossing to coat.", "Add 2 tablespoons lime juice, stirring to combine.", "Season with salt and pepper.", "Refrigerate at least 1 hour.", "Just before serving, add cucumber, tomato, and cilantro.", "Add remaining lime juice, if desired.", "Serve chilled or at room temperature." ], "author": null }
- Assistantjson
{ "data": "WAS" }