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": "Whole Berry Sauce", "description": "You don't really need to doctor up berries too much. This is a very simple recipe that works with any sweet berry, fresh or frozen, and makes a luscious, thick sauce for filling your crepes or topping off your pancakes. The sweetness level will vary depending on the sweetness of your berries, so start with the ½ cup of sugar and add more if needed.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 cups berries, fresh or frozen", "1/3 to 1/2 cup sugar", "1 tablespoon arrowroot", "(cornstarch is okay, too)", "2 tablespoons cold water" ] }, { "section": "CHERRY VANILLA BEAN", "ingredients": [ "Use cherries (obviously) and scrape the bean from 1 vanilla pod into\nthe sauce before cooking." ] } ], "instructions": [ "Combine all ingredients in a saucepan or saucier.", "Mix around to dissolve the arrowroot.", "Turn the heat up to medium.", "Stir the mixture often for about 15 minutes, until the sauce is thick and the berries are broken down a bit but still whole.", "If using frozen berries, the process will take a little longer.", "Let sit for at least 10 minutes before serving.", "I like this sauce best at room temperature." ], "author": null }
- Assistantjson
{ "data": "WWW" }