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": "HUEVOS RANCHEROS", "description": "You look at a menu and ask yourself, which dish completes me? Is it something for your sweet tooth? A deep-fried option? Spice? Or even something as simple as a few runny eggs? Sometimes you get a dish that checks off several boxes, and for me that's always huevos rancheros. My version is hearty and saucy, and it's got spice and runny eggs.", "subtitle": "Brunch is all about satisfying a craving.", "ingredients": [ { "section": "Salsa", "ingredients": [ "1 tablespoon (15 mL) canola oil", "3 shallots, roughly chopped", "2 cloves garlic, roughly chopped", "1 sweet red pepper, cut into 1/4-inch (5 mm) slices", "1 large green chili pepper, diced (use half if you do not like spice)", "½ cup (125 mL) water", "4 Roma tomatoes, chopped", "1 tablespoon (15 mL) chipotle chili powder", "1 teaspoon (5 mL) salt", "1/4 teaspoon (1 mL) black pepper", "2 teaspoons (10 mL) unsalted butter, divided", "1 cup (250 mL) canned black beans, drained and rinsed" ] }, { "section": "For Serving", "ingredients": [ "2 tablespoons (30 mL) canola oil", "4 large eggs", "4 small (6-inch/15 cm) corn tortillas", "3 tablespoons (45 mL) crumbled queso fresco (or any soft fresh cheese)", "1/4 cup (60 mL) chopped cilantro", "2 teaspoons (10 mL) sour cream (double this if you do not like spice)" ] } ], "instructions": [ "SALSA GONE ALL RANCHERO", "Heat the canola oil in a medium saucepan over medium-high heat.", "Add the shallots and garlic and sauté for 2 minutes, or until they become translucent.", "Add the red pepper and green chili pepper and continue sautéing for another 3 minutes.", "Add the water, tomatoes, chili powder, salt, and black pepper; stir to combine.", "Turn the heat down to medium, add 1 teaspoon (5 mL) butter, and cook for 10 minutes, stirring occasionally.", "Turn the heat down to low, add the black beans and the remaining 1 teaspoon (5 mL) butter, stir thoroughly, then remove from the heat and keep warm.", "AND NOW WE HUEVOS", "In a medium frying pan, heat the canola oil over medium-high heat.", "Crack the eggs into the pan and turn the heat down to medium.", "Cook the eggs sunny side up for about 5 minutes.", "At the same time, heat a large frying pan over high heat and lightly toast the tortillas on both sides.", "NOW MAKE THOSE SIMPLE EGGS DANCE", "To assemble, arrange the tortillas on plates and top each with 1 sunny-side-up egg.", "Spoon the Salsa around the eggs and over the tortilla.", "Garnish with crumbled queso fresco, cilantro, and a drizzle of sour cream." ], "author": null }
- Assistantjson
{ "data": "MX" }