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": "Halloween Pasta", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups Halloween-shaped pasta", "2 cups wagon wheel-shaped pasta", "2½ cups peeled chopped pumpkin", "1 teaspoon ground nutmeg", "1 teaspoon ground allspice", "1 teaspoon ground cinnamon", "1 teaspoon minced garlic", "1 teaspoon chopped onion", "1 teaspoon chili powder", "3 tablespoons olive oil", "1 (4 ounce) can sliced black olives", "1 (8 ounce) can garbanzo beans, drained", "1/4 cup chopped garlic", "½ cup grated Parmesan cheese", "1/4 cup olive oil", "3 tablespoons dried oregano" ] } ], "instructions": [ "Step 1\nBring a large pot of lightly salted water to a boil. Cook Halloween-shaped and wagon wheel-shaped pasta in the\nboiling water, stirring occasionally until cooked through but firm to the bite, about 12 minutes. Drain and\ntransfer pasta to a large bowl.", "Step 2\nPlace pumpkin in a large pot and cover with salted water; bring to a boil. Reduce heat to medium-low and\nsimmer until tender, about 20 minutes. Drain and return pumpkin to pot. Add nutmeg, allspice, cinnamon, 1\nteaspoon garlic, onion, chili powder, and 3 tablespoons olive oil; stir to coat.", "Step 3\nToss olives and garbanzo beans into cooked pasta. Add 1/4 cup garlic, Parmesan cheese, 1/4 cup olive oil, and\noregano. Toss to coat; top with pumpkin mixture." ], "author": null }
- Assistantjson
{ "data": "IT" }