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": "Coco bean and chickpea salad", "description": "A delicious and nutritious salad combining flavorful coco beans and chickpeas with a fresh herb pesto.", "subtitle": "with herb herb pesto", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "150 g of white coco beans", "150 g of chickpeas", "2 red onions", "2 nice ripe tomatoes", "2 sprigs of thyme", "1 bay leaf", "4 crushed garlic cloves", "1 litre of chicken stock", "6 tablespoons of olive oil", "2 spoonfuls of the bean cooking liquid", "salt", "pepper", "a very small bunch of chervil", "a very small bunch of flat-leaf parsley", "a very small bunch of basil", "a very small bunch of chives", "8 segments of tomato confit", "1 silverskin onion" ] } ], "instructions": [ "Prepare the coco beans and chickpeas. The day before, soak 150 g of white coco beans and 150 g of chickpeas.", "On the day, peel 2 red onions, blanch and de-seed 2 nice ripe tomatoes and cut them all into wedges.", "Drain the beans and chick peas and put in a saucepan. Add the onions and tomatoes, 2 sprigs of thyme, 1 bay leaf, 4 crushed garlic cloves and 1 litre of chicken stock (page 10). Cook gently for 45 minutes until the beans are soft. Salt lightly once they are cooked.", "Prepare the herb pesto. Wash, dry and separate the leaves from a very small bunch of chervil, a very small bunch of flat-leaf parsley and a very small bunch of basil. Blend them, gradually adding 6 tablespoons of olive oil and 2 spoonfuls of the bean cooking liquid. Add salt and pepper.", "To finish the salad, cut a very small bunch of chives into slivers. Cut 8 segments of tomato confit (page 16) in half. Peel and finely slice 1 silverskin onion.", "Drain the coco beans and chickpeas and place them in a bowl. Add the onion, tomato confit segments, herb pesto and chives, and mix well.", "Tip into a dish and serve warm or cold." ], "author": "" }
- Assistant
{ "data": "WWW" }