Goal L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal L'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 Tu dois renvoyer 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": "Grilled Plantains With Rum-Butter Glaze", "description": "THIS DISH WAS A RESULT OF MY TRAVELS across South America, especially my time spent in Colombia. I prepared this as part of a spread I made as a thank-you to my hosts. It's simple and straightforward. I love both plantains and bananas, but plantains done right are a guaranteed win.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "4 tablespoons salted butter, softened", "3 tablespoons light brown sugar", "3 ounces spiced rum", "6 ripe plantains, peeled and split in half lengthwise", "2 tablespoons canola oil", "Salt", "Black pepper", "Cayenne pepper (optional)" ] } ], "instructions": [ "1. Combine butter, sugar, rum, and 3 tablespoons water in a small saucepan. Cook over medium-low heat, stirring constantly, until sugar dissolves. Continue cooking, stirring occasionally, until sauce thickens to the consistency of a light syrup, 10 to 15 minutes. Remove from heat, and let cool.", "2. Preheat a grill to 300°F. Place plantains on a baking sheet, brush with canola oil, and sprinkle with salt, black pepper, and, if desired, cayenne.", "3. Place plantains on grill, cut sides down; cover and cook for 5 minutes.", "4. Flip plantains, brush with sauce, and cook until they have distinct grill marks, 5 to 7 minutes.", "5. Let rest for 5 minutes before serving." ], "author": "" }
- Assistant
{ "data": "CO" }