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": "WATERMELON RIND SALAD", "description": "This bright salad was a favorite option at Boma-Flavors of Africa, where a half dozen side-by-side cooking stations feature curries, chutneys, and other Indian and Asian influences that add flavor to grilled fish, meat, and vegetables on the African-inspired menu.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 pounds watermelon", "1 cup thinly sliced ginger", "1/2 cup sugar", "1 cup rice vinegar", "1 cup grenadine", "1 cup water" ] } ], "instructions": [ "Slice red fruit away from watermelon rind and skin.", "Scrub skin and scrape the white part of rind with a serrated spoon to remove most of red fruit.", "Slice rind and skin into paper-thin strips with a mandoline.", "Set aside.", "Stir together ginger, sugar, vinegar, grenadine, and water in a saucepan over medium-high heat.", "Reduce to a simmer and cook 10 minutes to let ginger infuse liquid.", "Remove from heat and slightly cool.", "Stir in watermelon rind and marinate at least 1 hour.", "Refrigerate in an airtight container.", "Drain the rind and remove ginger slices." ], "author": null }
- Assistant
{ "data": "WAF" }