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": "Thon au four", "description": null, "subtitle": null, "ingredients": [ { "section": "For the marinade", "ingredients": [ "600g fresh tuna", "3 limes", "1 bird's eye chili", "8 spring onions", "10 cl dry white wine", "3 tablespoons olive oil", "1 onion", "2 cloves garlic", "1 tablespoon chopped chives", "Salt", "Pepper" ] }, { "section": "For the garnish", "ingredients": [ "1 tablespoon chopped parsley" ] } ], "instructions": [ "Mince half of the chili.", "Chop four spring onions.", "Peel and chop one clove of garlic.", "Squeeze the limes.", "Mix these ingredients in a bowl with 1 tablespoon of olive oil.", "Add the piece of tuna and coat it with this marinade.", "Let marinate for 2 hours.", "Preheat oven to 180°C (th. 6).", "Peel and chop the onion and the other clove of garlic, mince the remaining spring onions and the other half of the chili.", "Sauté all these ingredients with 1 tablespoon of olive oil in a pan for 5 minutes, then put them in the bottom of a gratin dish.", "Drizzle with the white wine.", "Drain the tuna (reserve the marinade) and place it in the dish.", "Coat it with 1 tablespoon of olive oil, salt and pepper.", "Bake for 25 minutes.", "During cooking, take the tuna out of the oven two or three times and coat it with the marinade.", "Sprinkle with parsley before serving." ], "author": null }
- Assistant
{ "data": "WWW" }