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": "Grass-Fed Beef Sliders with Pimento Cheese", "description": "All-American tastes like barbecue, crab cakes, and lobster rolls have been on tap at Hops & Barley Marketplace since its debut in 2005. The grass-fed beef burger, which was included on the Marketplace menu in 2014 and 2015, is the perfect accompaniment to an ice-cold beer. Forget a slice of melted cheese on top; slather with this spicy pimento cheese instead.", "subtitle": "Festival Favorite to Remember", "ingredients": [ { "section": "Pimento Cheese", "ingredients": [ "2 cups extra-sharp cheddar cheese, shredded", "8 ounces cream cheese", "1/2 cup mayonnaise", "1/2 cup roasted red peppers, finely diced", "1/4 teaspoon ground cayenne pepper", "1 cup favorite spice relish, drained", "1 jalapeño pepper, finely diced", "coarse salt, to taste", "freshly ground black pepper, to taste" ] }, { "section": "Sliders", "ingredients": [ "1/2 pounds grass-fed beef, formed into 12 (2-ounce) patties", "12 slider buns", "1/2 cup butter, melted" ] } ], "instructions": [ "Place all ingredients in a food processor and mix thoroughly. Do not over-process. (Mixture should be lumpy.)", "Refrigerate for at least 1 hour.", "Preheat grill to medium-high heat.", "Butter both sides of bun and toast on grill. Set aside.", "Cook sliders to desired doneness. Place sliders on bottom halves of buns.", "Top with a liberal amount of pimento cheese and top with remaining halves of buns. Serve immediately." ], "author": null }
- Assistantjson
{ "data": "WNA" }