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": "Lamb's lettuce and apple salad", "description": "This fresh salad combines the delicate flavors of lamb's lettuce and the crispness of apples for a refreshing dish that's good for your health.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "200 g of lamb's lettuce", "1 green apple", "1 red apple", "small bunch of chives", "2 tablespoons of cucumber and apple condiment", "1 or 2 tablespoons of Greek-style yogurt", "small splash of olive oil", "a little salt", "freshly ground black pepper" ] } ], "instructions": [ "Wash 200 g of lamb's lettuce in several changes of water and dry it.", "Put in a salad bowl, season with a small splash of olive oil, a little salt and freshly ground black pepper, and toss well.", "Wash 1 green apple and 1 red apple but do not peel them. Cut in half, remove the cores and slice finely with a mandoline slicer and then cut these slices into slivers.", "Add these slivers of apple to the bowl of lamb's lettuce. Mix very gently.", "Cut the stems of a small bunch of chives into six.", "Thin 2 tablespoons of cucumber and apple condiment with 1 or 2 tablespoons of Greek-style yogurt to make it nice and liquid.", "Pour onto the bottom of the serving dish or onto plates.", "Pile the lamb's lettuce and apple salad on top, forming a dome.", "Then arrange the chopped chives around the edge." ], "author": "" }
- Assistant
Pour la recette donnée, il n'y a pas de pays explicitement mentionné dans le texte. Cependant, le terme "Greek-style yogurt" indique une connexion avec la Grèce, ce qui suggère que la recette pourrait avoir une origine grecque.
Le code ISO 3166-1 alpha-2 pour la Grèce est "GR".
Voici le format JSON structuré selon les spécifications :
{ "data": "GR" }