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": "MEXICAN PICADILLO", "description": "Take Taco Tuesday to the next level with this absolutely easy Mexican Picadillo recipe. Throwing all of the ingredients in a slow cooker\nand letting them stew all day lends itself to one flavorful combination. I like to serve mine in a bowl over cauliflower rice-or in lettuce\ncups, taco style!", "subtitle": "FROM ALEX SNODGRASS OF THE DEFINED DISH", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 pound extra-lean ground beef", "1 medium russet potato, peeled and chopped into ½-inch cubes", "1 cup diced yellow onion, plus more for serving", "1 cup diced peeled carrot", "1 medium green bell pepper, diced (¼ cup)", "½ cup Whole 30-compliant salsa", "4 cloves garlic, thinly sliced", "1 jalapeño, seeded and diced", "1 teaspoon chili powder", "1 teaspoon salt", "1 teaspoon ground cumin", "½ teaspoon dried oregano", "¼ teaspoon black pepper", "16 Bibb lettuce leaves", "Chopped fresh cilantro" ] } ], "instructions": [ "IN a large skillet, cook the beef over medium-high heat, stirring with a wooden spoon to break it up, until no longer\npink, 5 to 8 minutes.", "Use a slotted spoon to transfer the meat to a 4-quart slow cooker.", "Add 1 cup water, the potato, onion, carrot, bell pepper, salsa, garlic, jalapeño, chili powder, salt, cumin, oregano, and pepper.", "COVER and cook on low for 7 to 8 hours or on high for 3½ to 4 hours.", "SERVE in lettuce leaves, topped with cilantro and chopped onion." ], "author": "Alex Snodgrass" }
- Assistantjson
{ "data": "MX" }