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": "Gingerbread man from Shrek", "description": null, "subtitle": "If you were a big fan of Shrek growing up, then you know who Gingy is. Here is a recipe on how to make that gingerbread man from Shrek.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 package of cake and cookie mix", "½ cup of flour", "6 tablespoons of butter", "1 egg", "Pastry tip no.3", "3 piping bags", "Purple gumdrops" ] } ], "instructions": [ "1. In a mixing bowl, combine the cookie mix with egg, flour, and butter by using a spoon.", "2. Once the consistency becomes elastic, wrap the dough in plastic and place it in the refrigerator for 20 minutes to chill.", "3. Roll and cut the cookie dough in a Gingerman shape using a cookie cutter.", "4. Place the dough in a baking sheet lined with parchment paper. Bake in an oven at 400 degrees F for 6 minutes.", "5. Remove the cookies from the pan and let it cool. Break the legs into half to get the authentic Gingy look.", "6. Once the cookie has cooled down, put the icing in the piping bag and start decorating your gingerbread man like Gingy.", "7. Serve." ], "author": null }
- Assistant
{ "data": "WNA" }