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": "Remy's favorite cheese with meatloaf", "description": "Remy, the little chef, is different from everyone in his community. Even after he was ridiculed by his father on many\noccasions, he still followed his passion for food. Remy loved food and cheese. He loved experimenting, and so should\nwe. We must try the meatloaf, and what is better than the fact that I will be sharing an easy recipe today? Come on, let's\nget to the recipe.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 chopped onion", "1 egg white", "1 chopped onion", "1 cup of milk", "1 cup of bread crumbs (already dried)", "Pepper and salt for taste and flavor", "Brown sugar 2 tablespoons", "Mustard prepared 2 tablespoons", "1/3 cup of ketchup (6 tablespoons)", "Cooking spray" ] } ], "instructions": [ "The oven needs to be preheated to 350 degrees", "Put the milk and bread crumbs in a large container, and include the onions, cup of milk, and beef.", "Coating the 9X 5inch loaf pan with cooking spray, now it's time to add on the salt and pepper for seasoning. Otherwise,\ncoat the 9X13 inch baking dish with cooking spray, shape it up as a loaf, and place it in the dish.", "On the other hand, in a small bowl; put in mustard, ketchup, and brown sugar. Mix it and spread it over the meatloaf.", "The final step includes baking it at 350 degrees F for at least an hour." ], "author": null }
- Assistantjson
{ "data": "WWW" }