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": "Orange Chicken", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 red onion, finely sliced", "4 boneless skinless chicken breasts, cut into strips", "2 garlic cloves, chopped", "1 tsp coriander seed", "1 tsp ground cumin", "1 tsp ground cinnamon", "1/2 tsp cayenne pepper", "6 cardamom pods, crushed with seeds removed", "1 1/4 C. chicken broth", "2 tbsp all-purpose flour", "1 tsp dried oregano", "1 (14 oz.) can chopped tomatoes", "2 pieces orange peel", "2/3 C. orange juice", "salt & freshly ground black pepper" ] } ], "instructions": [ "1. Heat a large nonstick frying pan and sauté the onion for about 2-3 minutes.", "2. Stir in the chicken and garlic and stir fry till golden brown from all the sides.", "3. Stir in the 2-3 tbsp of the broth, flour and spices and cook, stirring for about 1 minute.", "4. Slowly, add the broth, stirring continuously and stir in tomatoes, oregano and orange peel.", "5. Simmer, covered for about 20 minutes.", "6. Stir in the seasoning and serve." ], "author": null }
- Assistant
{ "data": "WWW" }