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": "Chorizo and Potatoes", "description": "Smoky, sweet and piquant.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "chorizo", "new potatoes", "shallots", "young carrots", "200g new potatoes", "4 chorizo cooking sausages", "a couple of large banana shallots", "150g small young carrots", "a little oil", "4 chorizo sausages", "a bun", "mayonnaise", "crisp salad leaves, such as iceberg lettuce, and watercress", "a couple of sweet potatoes", "a peeled and roughly chopped onion", "2 tablespoons of olive oil" ] } ], "instructions": [ "Put 200g new potatoes into boiling water and cook until tender, drain and slice into thick coins.", "Set the oven at 180°C/Gas 4.", "Split 4 chorizo cooking sausages in half, score them on their cut sides, then place them in a roasting tin with a couple of large banana shallots, peeled and halved, their layers separated.", "Add the cooked potatoes, and 150g small young carrots, thinly sliced.", "Trickle with a little oil then bake for 20 minutes, till sizzling.", "Split chorizo sausages in half lengthways, score their cut sides, then grill till soft and sizzling.", "Split a bun open for each sausage, spread with mayonnaise and tuck the hot chorizo in together with some crisp salad leaves, such as iceberg lettuce, and watercress.", "Peel and roughly chop a couple of sweet potatoes.", "Toss with a peeled and roughly chopped onion and 2 tablespoons of olive oil.", "Roast in an oven set at 200°C/Gas 6 for about 30-35 minutes, then add 4 chorizo sausages, cut into fat coins, and toss well.", "Return to the oven for 15-20 minutes till all is brown and sizzling.", "Serve with a bowl of mayonnaise." ], "author": "" }
- Assistantjson
{ "data": "ES" }