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": "Smoked Pork Butt", "description": "This recipe is perfect for pulled pork sandwiches topped with my Sweet Vinegar Slaw.", "subtitle": "This recipe is perfect for pulled pork sandwiches topped with my Sweet Vinegar Slaw.", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "8 pounds bone-in pork butt, trimmed", "¼ cup olive oil", "½ cup Pork Butt Rub" ] } ], "instructions": [ "1. Pat pork butt dry with paper towels. Rub with olive oil and Pork Butt Rub. Let rest for 45 minutes to 1 hour.", "2. Prepare an indirect fire in a grill or smoker, and preheat to 250°F.", "3. Place pork butt in smoker; cover and cook until a meat thermometer inserted into meat reads 170°F, 5 to 6 hours.", "4. Remove pork from smoker, and dust lightly with more rub, if desired. Wrap pork tightly in foil, and put it back in smoker.", "5. Cover and cook until a meat thermometer reads 199°F to 202°F, 1½ to 2 hours. Transfer foil-wrapped pork to a clean, dry cooler, and let rest for 2 hours before serving." ], "author": "" }
- Assistant
{ "data": "WNA" }