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": "Kielbasa Rösti Waffles", "description": "As much as I love his version, he piles his toppings on top of the waffle, while I tend to incorporate more of the ingredients into the waffle itself, resulting in a flavour explosion when you break into it with a knife and fork. Ky has gone so far as to tell me this is her favourite recipe in Brunch Life, so it's safe to say, this recipe is a must-try.", "subtitle": "The rösti potato guy at our local farmers' market inspired this recipe.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 large skin-on russet potato, washed and grated", "½ pound (225 g) kielbasa, cubed", "3 large eggs, lightly beaten", "1 cup (250 mL) grated old cheddar cheese", "1/4 cup (60 mL) diced tomato", "1/4 cup (60 mL) diced yellow onion", "1 teaspoon (5 mL) dried parsley", "1 teaspoon (5 mL) salt", "½ teaspoon (2 mL) black pepper", "1/4 teaspoon (1 mL) cayenne pepper", "2 tablespoons (30 mL) sour cream", "1 tablespoon (15 mL) finely chopped fresh chives" ] } ], "instructions": [ "Preheat a non-stick waffle iron.", "Place the grated potato in a fine-mesh strainer and squeeze out as much water as you can.", "Leave to drain for 10 minutes.", "In a large bowl combine the grated potato, kielbasa, eggs, cheddar, tomato, onion, dried parsley, salt, black pepper, and cayenne pepper.", "Ladle half of the rösti mixture into the waffle iron and cook for 6 minutes, or until crispy.", "Repeat with the remaining mixture to make a second waffle.", "To serve, top the Kielbasa Rösti Waffles with sour cream and a sprinkle of chives." ], "author": null }
- Assistantjson
{ "data": "PL" }