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 Rice with Shrimp", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "500 g shrimp", "1 pinch salt", "1 pinch pepper", "1 pinch turmeric", "1 1/2 basmati rice", "3 small red onions, sliced", "1 1/2 tsps fresh garlic paste", "1 tsp fresh ginger paste", "1 medium tomatoes, diced", "2 green chilies", "1/4 C. coriander, chopped", "1 C. hot water", "3 cardamom pods", "5 peppercorns", "3 bay leaves", "2 cloves", "1 cinnamon stick", "1 dried lime", "1 tsp salt", "1 tsp cumin", "1/2 tsp ground ginger", "1/4 tsp ground cilantro", "1/2 tsp Arabic spices", "1/4 tsp cardamom", "1/4 tsp turmeric" ] } ], "instructions": [ "In a bowl, soak the rice in water for at least 30 minutes.", "In a bowl, add the shrimp and sprinkle with a pinch of turmeric, salt and black pepper.", "In a skillet, heat 2 tbsps of the vegetable oil on medium heat and stir fry the shrimp for about 2 minutes per side.", "Transfer the shrimp into a bowl.", "In the same skillet, sauté the onion till golden brown.", "Stir in the ginger, garlic and spices and sauté till aromatic.", "Stir in the tomatoes and dried lime and cook till the tomatoes start to wilt.", "Drain the rice completely and add it to the skillet with the shrimp and salt and gently, stir to combine.", "Add enough water so that it is about 2-inches above the rice mixture.", "Bring to a boil on medium-high heat and then reduce the heat to medium.", "Cook for about 20 minutes till rice cooked completely." ], "author": null }
- Assistantjson
{ "data": "WAS" }