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": "Salmon Salad straight from Gusteau's kitchen", "description": "Gusteau was a famous chef. He loved to cook and also had an amazing cookbook and kitchen to his name. He was an inspiration for many and was also looked down upon by many. But one thing that stayed constant was his love for food and his kitchen. Salmon salad is a fresh, and healthy food choice for anyone. It can be an amazing food item for parties or family gatherings. Let's check out the recipe.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups of salmon", "8 cups butter", "8 slices of turkey bacon", "20 cherry tomatoes", "1 avocado", "1 onion", "1 tablespoon olive oil", "1 lemon juice and zest", "1 teaspoon mustard", "salt", "pepper" ] } ], "instructions": [ "Finely chop the onions and grate the lemon zest.", "In a different bowl, add lemon zest, lemon juice, onions, and mustard.", "Add olive oil to the bowl and mix it thoroughly.", "Add salt and pepper according to taste.", "At this stage, you can chop tomatoes and lettuce.", "Cook the bacon until it's crunchy and keep it aside to cool down.", "Once the bacon has cooled down, you can cut it into edible pieces.", "Get the avocado ready at this point.", "Put the ingredients in four different portions of lettuce, tomato, bacon, and avocado.", "Heat the salmon for 2-3 minutes in an oven.", "In a bowl or any serving plate, add all the ingredients and top with salmon.", "Voila, your salmon salad is ready." ], "author": "Gusteau" }
- Assistantjson
{ "data": "WWW" }