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": "Quick Cucumber Pickles", "description": "I've loved cucumbers all my life, and have always preferred the fresh flavor and crunch of quick-pickled ones to the less snappy and often rubbery ones that emerge from brines. In bowls, quick pickles provide contrast in the form of coolness and some zingy crunch, and this easy method makes a clean, straightforward quick pickle.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 small firm cucumbers, such as Kirby or Persian", "1 tablespoon sugar", "1½ teaspoons fine sea salt", "1 tablespoon rice vinegar" ] } ], "instructions": [ "If desired, peel the cucumbers. If not peeling, scrub the peels thoroughly.", "Slice the cucumbers into 1/8-inch-thick rounds (or thinner if desired) using a mandoline or a sharp knife.", "Toss with the sugar and salt and leave in a colander to drain for 20 to 30 minutes.", "Rinse well and drain.", "In a bowl, toss with the vinegar, tasting and adding more as desired." ], "author": null }
- Assistant
{ "data": "WWW" }