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": "Shakshuka", "description": "Shakshuka is a simple vegetarian dish, quick and easy to rustle up. The gently poached eggs nestle in a delicious chunky tomato and pepper sauce – it's so satisfying, you can serve it for breakfast, lunch or even dinner. Serve with bread.", "subtitle": null, "ingredients": [ { "section": "Ingredients", "ingredients": [ "1 tablespoon olive oil", "2 red onions, diced", "½ red pepper, diced", "1 fresh red chilli, deseeded and finely chopped", "½ teaspoon mild chilli powder", "1 teaspoon sweet smoked paprika", "1 teaspoon garlic paste", "400g tin of chopped or plum tomatoes", "4 eggs", "salt", "fresh coriander leaves chopped, to garnish" ] } ], "instructions": [ "Heat the oil in a frying pan on a low-medium heat and add the onions.", "Cook for 3-5 minutes to soften, then add the red pepper, fresh chilli, chilli powder, paprika and garlic paste.", "Stir in the tomatoes, season with salt, then bubble away for 8-10 minutes until nice and fragrant.", "Using the back of a large spoon, make 4 dips in the sauce, then crack an egg into each one.", "Put a lid on the pan, then cook gently on a low heat for 6-8 minutes until the eggs are done to your liking.", "Scatter with the coriander leaves and serve." ], "author": null }
- Assistant
{ "data": "IL" }