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": "Spaghetti and Meatball from The Lady and the Tramp", "description": null, "subtitle": "This is one of the most iconic Disney movie recipes there is. It has made spaghetti and meatballs as a romantic dish. This recipe is perfect for sharing with your significant other so that you can recreate that one pasta strand scene.", "ingredients": [ { "section": "Meatballs", "ingredients": [ "1 cup breadcrumbs (seasoned)", "2 tbsp romano and parmesan cheese blend (grated)", "½ tsp salt", "1 tsp pepper", "2 large lightly beaten eggs", "2 lbs. ground beef" ] }, { "section": "Sauce", "ingredients": [ "1 large finely chopped onion", "1 medium finely chopped green pepper", "3 cans of tomato sauce (15 ounces each)", "2 cans of undrained diced tomatoes", "1 can of tomato paste", "6 cloves of minced garlic", "2 bay leaves", "1 tsp of parsley flakes, oregano, and dried basil", "1 tsp salt", "½ pepper", "1/4 tsp red pepper flakes (chopped)", "Freshly cooked spaghetti" ] } ], "instructions": [ "1. In a mixing bowl, combine the salt, pepper, cheese and breadcrumbs with eggs.", "2. Add in the beef into the mixture. Create 1 ½ inches balls from the mixture.", "3. In a non-stick pan, brown the meatballs. Drain the excess oils. Set aside", "4. In a slow cooker, put in the 5 sauce ingredients. Add the seasonings and garlic. Add the meatballs and cover it gently with the sauce. Cook slowly for 5 hours or until the meatballs are fully cooked.", "5. Serve on top of the freshly cooked spaghetti." ], "author": null }
- Assistant
{ "data": "IT" }