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": "Spiced Beef Pitas", "description": "Arayes are basically a Middle Eastern hamburger, a fantastic treat of juicy, spiced meat housed in crunchy pita bread. The best thing about them is you can whip them up in no time and can cook them in so many ways - broiler (grill), oven, or panini press.", "subtitle": "Arayes", "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 medium Pita bread, homemade (page 38) or store-bought", "11 oz/300 g ground (minced) beef or lamb", "1 tomato, seeded and very finely diced", "1 small onion, very finely diced", "1 green chilli, very finely diced", "1 tablespoon finely chopped flat-leaf parsley", "1 tablespoon finely chopped cilantro (coriander)", "1 tablespoon olive oil", "1 teaspoon salt", "½ teaspoon Nine Spice Mix (page 24)", "½ teaspoon red chilli flakes (optional)", "olive oil, for brushing" ] }, { "section": "To serve", "ingredients": [ "Garlic and Cucumber Labaneh (page 80)", "fresh tomatoes" ] } ], "instructions": [ "Use a serrated, pointed knife to cut around each pita in half, giving you two flat, round pieces of bread.", "Set aside.", "Put the meat into a large bowl with all the other ingredients, except the olive oil, and mix until well combined.", "Evenly spread a thin layer of the meat mixture into each half.", "Gently press together to close.", "Generously brush each bread with olive oil on both sides.", "Place in a panini press and cook on medium heat until the meat is fully cooked and the bread has nicely browned and crisped up, about 5-10 minutes.", "Serve with Garlic and Cucumber Labaneh (page 80) and fresh tomatoes." ], "author": "" }
- Assistantjson
{ "data": "WAS" }