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": "Diner Home Fries", "description": "It's pretty bare bones, but no breakfast would be complete without them. Use your biggest pan (you don't want the pan to be crowded) so that everything cooks faster.", "subtitle": "This is how we do it in Brooklyn. Boiled and lightly fried potatoes with green peppers and onions.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 pounds Yukon Gold potatoes (about 4 to 6 potatoes), cut in half lengthwise, sliced ½ inch thick or so", "3 tablespoons vegetable oil, divided", "1 green pepper, seeded, cut into 12-inch wide, inch-long pieces", "1 medium onion, cut into ½-inch wide, inch-long pieces", "3/4 teaspoon salt", "½ teaspoon ground black pepper" ] } ], "instructions": [ "Place potatoes in a pot and cover with cold water.", "Cover the pot and bring to a boil.", "Once boiling, turn heat down just a bit (to medium high) and cook for about 15 more minutes, until potatoes are thoroughly cooked but still firm.", "Drain well.", "Preheat a large, heavy-bottomed skillet over medium-high heat.", "Add 2 tablespoons oil and let the oil get hot.", "Add the potatoes and flip them around with a spatula to coat in oil.", "Let them cook undisturbed for about 5 to 7 minutes; they should be lightly browned.", "If not then bring the heat up a bit.", "Toss them and let cook for 10 more minutes, flipping occasionally to brown all sides.", "They won't all get browned and crispy; just do your best.", "Add the peppers, onions, salt and pepper, and another tablespoon of oil and cook for 5 to 7 more minutes, stirring often, until onions and peppers are cooked." ], "author": null }
- Assistant
{ "data": "US" }