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": "Tomato confit", "description": "This recipe for tomato confit will add depth and flavor to your cooking. Perfect for salads, pasta, rice, or vegetables, preserved tomatoes provide a piquant taste and enrich your dishes with antioxidants.", "subtitle": "For the larder", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 kg of ripe vine or plum tomatoes", "4 tablespoons of olive oil", "salt", "3 garlic cloves", "thyme (5 sprigs required in total for recipe)" ] } ], "instructions": [ "Blanch 1 kg of ripe vine or plum tomatoes. Quarter them and remove the seeds.", "Peel 3 garlic cloves.", "Preheat the oven to 100 °C (gas mark 1/4).", "Put the tomato quarters in a large bowl. Sprinkle with 4 tablespoons of olive oil and a little salt. Mix gently with your hands until the tomatoes are well coated and seasoned.", "Cut 1 garlic clove in half and rub the baking tray with it, sprinkle the leaves from 4 sprigs of thyme (5 sprigs required in total for recipe) over it, then spread out the tomato quarters so that they don't touch one another. Pour all the juice remaining in the bowl over the tomatoes.", "Put the tray in the oven and keep the door slightly open, wedging it with a spoon, to let in a light breath of air.", "Cook for 2 to 3 hours, checking from time to time. Turn over any tomatoes that are dry on the top and too moist underneath and gradually take out those that are cooked.", "Allow to cool. Put in a plastic container or jar and cover with olive oil. Add 2 thinly sliced garlic cloves and a sprig of thyme to flavour your oil.", "Store in a cold place." ], "author": "" }
- Assistantjson
{ "data": "FR" }