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": "Pesto", "description": "Pesto is easy to grow indoors, year-round, but August and September are when it's truly abundant. This no-cook recipe can be made in large batches when the sign at the CSA says UNLIMITED BASIL and frozen for use later in the year. It uses shelled hemp seeds in place of pine nuts and cheese to give the pesto a nutty flavor. Pesto can be used as a topping for pasta or pizza instead of tomato sauce or added to your oil of choice to make a dipping sauce for bread.", "subtitle": "A delicious no-cook basil sauce", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "3 cups (72 g) fresh basil leaves, loosely packed", "2 garlic cloves", "½ teaspoon salt", "1 teaspoon fresh lemon juice", "1½ tablespoons shelled hemp seeds", "¼ to ½ cup (60 to 120 ml) olive oil" ] } ], "instructions": [ "Combine the basil, garlic, salt, and lemon juice in a food processor. Pulse ten to twelve times. Pack down the pesto leaves and scrape the sides of the bowl as needed, until all ingredients are chopped.", "Add the hemp seeds and 1/4 cup (60 ml) of olive oil. Puree for 20 to 30 seconds, until the mixture is smooth.", "If you plan to use the pesto with pasta or for topping a pizza (see page 181), add an additional 1/4 cup (60 ml) of oil. Heat the pesto in a small saucepan over low heat for 10 minutes, or until you are ready to toss it with the pasta." ], "author": "" }
- Assistantjson
{ "data": "IT" }