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": "EGG AND LAMB FRY-UP", "description": "My father always told me this dish tastes best when he eats it at the butchers where he buys his meat because the butcher uses such fresh ingredients, fried simply in olive oil, that it really needs very little else. Humble yet hearty, this dish is quick and easy to make and can be eaten for breakfast, lunch, or dinner. The recipe here is slightly modified from the basic one my father enjoyed, but I have kept it as true to the original as possible.", "subtitle": "لحمه وبيض", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon butter", "1 tablespoon olive oil", "1 lb 2 oz/500 g lamb meat from the leg, cut into ½-inch/1-cm cubes", "½ teaspoon Nine Spice Mix", "½ teaspoon salt", "6 eggs, whisked with a pinch of salt and black pepper", "½ teaspoon sumac" ] }, { "section": "To serve", "ingredients": [ "Pita bread, homemade or store-bought", "fresh vegetables and pickles" ] } ], "instructions": [ "Put the butter and olive oil into a skillet (frying pan) and place over high heat until hot but not smoking.", "Add the meat, sprinkle with Nine Spice Mix and salt, and cook for 5-10 minutes, stirring occasionally, until browned on all sides and cooked through.", "If the meat releases water, cook until all water has evaporated and the meat is brown.", "Pour the eggs evenly over the meat and stir with a spoon until the meat and eggs are fully incorporated and the egg starts to set.", "Cook until the eggs reach the desired consistency, about 2 minutes for softly scrambled and 4 minutes for firmer texture.", "Transfer to a plate, sprinkle the sumac over the top, and serve with pita bread, fresh vegetables, and pickles." ], "author": null }
- Assistantjson
{ "data": "WAS" }