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": "Dead Man Meatloaf", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon butter", "1 tablespoon minced garlic", "1 onion, chopped", "1 cup chopped celery", "2 large eggs eggs", "2 pounds lean ground beef", "1 tablespoon Cajun seasoning", "1 cup seasoned bread crumbs", "1 pitted black olive, cut in half", "1 cup ketchup" ] } ], "instructions": [ "Melt the butter in a skillet over medium heat. Cook and stir the garlic, onion, and celery in the hot butter until the onion has softened and turned translucent, about 10 minutes. Transfer the vegetables to a mixing bowl, and allow to cool to just warm.", "Preheat an oven to 350 degrees F (175 degrees C). Place a sheet of aluminum foil onto a baking sheet, and spray with nonstick cooking spray.", "Crack the eggs into the mixing bowl with the vegetables, and mix until the egg is smooth. Add the ground beef, Cajun seasoning, and bread crumbs. Mix with your hands until the mixture is evenly blended. Form the meat mixture into the shape of a stick man.", "Bake in the preheated oven until no longer pink in the center, about 35 minutes. An instant-read thermometer inserted into the center should read at least 160 degrees F (70 degrees C). Once done, place the olive halves onto the head for eyes, and pour the ketchup onto the abdomen. Return to oven, and bake 10 more minutes.", "Serve with a plastic knife impaled in the abdomen for effect." ], "author": null }
- Assistantjson
{ "data": "US" }