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": "Kiki's Delivery Service Herring & Pumpkin Pie", "description": "In Kiki's Delivery Service, thirteen-year-old Kiki leaves home to complete her apprenticeship as a witch. Being on her own for the first time in a new city is challenging, but the young witch decides to earn a living by making deliveries on her broomstick. Kiki receives a call from Madame, an elderly woman who wants Kiki to deliver a homecooked meal to her granddaughter for her birthday. Unfortunately, Madame's oven is not working, and she can't bake her usual herring and pumpkin pie. Unwilling to accept payment without making the delivery, Kiki helps Madame bake the pie, even though it means missing a party. The pie is rustic and clearly made with love, but the delivery is a disappointment: Instead of thanking Kiki, the granddaughter complains, "I hate Grandma's stupid pies." The story takes place in an imaginary European city, and the dish is probably meant to be a regional specialty that the grandmother is known for making. As an added touch, witches are often associated with pumpkins, so including that ingredient in the pie is likely a nod to the cliché.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1/4 pumpkin or 1 butternut squash, depending on the season", "20 black olives, pitted", "2 cloves garlic", "1 medium white onion", "1/4 teaspoon salt", "½ teaspoon pepper", "Pinch of paprika", "2 tablespoons salted butter", "1 tablespoon olive oil", "3/4 cup plus 2 tablespoons cream", "4 smoked herring fillets", "2 pie crusts, uncooked", "1 egg yolk, beaten" ] } ], "instructions": [ "Scoop the seeds out of the pumpkin, cube the flesh, and steam for approximately 20 minutes.", "Thinly slice 10 olives, chop the garlic, and slice the onion into rounds.", "When the pumpkin is soft, remove it from heat and mash it into a purée. Add the salt, pepper, paprika, butter, and olives.", "Lightly brown the garlic and onion in the oil. Add the cream, and stir to combine. Warm the mixture, and then pour in the pumpkin purée. Stir to combine.", "Spread the mixture into the bottom of a pie pan in a flat, even layer.", "Preheat the oven to 350°F. Cut the smoked herring into small pieces, and arrange them on top of the purée, evenly spaced.", "Cover the contents of the pie with one pie crust. Then cut thin strips from the other pie crust (or from scraps of the first) to lay over the whole crust, as shown in the photo.", "If desired, you can recreate the fish from the film by cutting out its shape and scales from another piece of pie crust and then placing those pieces on top of the strips.", "Use a knife tip to poke 10 small cross-shaped holes around the edges of the pie on top of the crust strips. Brush the entire crust with egg yolk. Place the remaining 10 olives in the holes for decoration.", "Bake the pie for 40 minutes at 350°F." ], "author": null }
- Assistant
{ "data": "WEU" }