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": "BEEF PASTRY", "description": null, "subtitle": null, "ingredients": [ { "section": "Pastry", "ingredients": [ "3 C. all-purpose flour", "1 tbsp baking powder", "1 tbsp sugar", "1 tsp salt", "2 eggs, beaten", "1 C. milk, warmed", "1/3 C. corn oil" ] }, { "section": "Filling", "ingredients": [ "2 tbsps corn oil, for frying", "2 medium onions, chopped", "1 lb ground beef", "1 tbsp ground cumin", "1 tbsp salt", "1 tsp black pepper" ] } ], "instructions": [ "Set your oven to 300 degrees F before doing anything else and grease a baking sheet.", "For the pastry in a bowl, mix together the flour, sugar, baking powder and salt.", "Add the eggs, warm milk and oil and beat till a soft dough forms.", "Make 2-inch balls from the dough and keep it aside covered for about 15 minutes.", "For the filling in a large frying pan, heat oil and sauté the onion till soft.", "Stir in the beef, cumin, salt and black pepper and cook till done.", "Place the dough balls onto floured surface and roll into 4-inch circles.", "Divide the filling in the center of each pastry.", "With wet fingers, moisten the edges and fold them around the filling and press to seal.", "Arrange the pastries onto the prepared baking sheet and cook them in the oven for about 15 minutes.", "Serve warm." ], "author": null }
- Assistantjson
{ "data": "WWW" }