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": "Mother Gothel's Hazelnut Soup", "description": "Mother Gothel's motivation may be twisted and cruel, but there is no doubt that she has shared some heartwarming and cozy moments with Rapunzel as she grows up into a beautiful young woman. We know that Rapunzel loves Mother Gother's hazelnut soup, so we've scoured her books and finally found the secret recipe.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "Acorn squash-3 cups", "Olive oil 2 tablespoons", "Chopped leek-1-1/2 cups", "Butter - 2 tablespoons", "Shallots, chopped - 4", "Parsnips, chopped - 3 wholes", "Toasted hazelnuts, chopped - 6 oz", "Vegetable broth - 5 cups", "Milk - 1 cup", "Dried thyme 1 teaspoon", "Rosemary - - 2 tablespoons", "Salt and pepper, to taste" ] } ], "instructions": [ "Cut squash in two and take out all the seeds.", "Drizzle with olive oil, salt, and pepper.", "Bake for 45 minutes at 400°F, or until tender.", "Sauté shallots and leeks in olive oil and butter until fragrant.", "Add broth, parsnips, and hazelnuts.", "Season with salt and pepper.", "Drop in the thyme.", "Boil the broth, then simmer for 20 minutes.", "When the squash is cooked, add the flesh into the broth.", "Use a hand blender to puree the soup until smooth.", "Add milk and rosemary.", "Serve with more rosemary and hazelnuts." ], "author": null }
- Assistant
{ "data": "WWW" }