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": "Summer Herb Rolls", "description": "Bright-tasting. A hot, refreshing crunch.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "cucumber", "red chilli", "carrot", "spring onion", "rice noodles", "spring roll wrappers", "mint", "basil", "coriander", "chives", "ponzu sauce", "lime", "rice vinegar", "hot chilli sauce" ] }, { "section": "For the rolls", "ingredients": [ "50g glass noodles", "2 large spring roll wrappers", "6 or 7 basil leaves", "6 or 7 mint leaves", "6 or 7 coriander leaves", "4 slim chives" ] }, { "section": "For the dip", "ingredients": [ "a tablespoon of ponzu sauce", "the juice of half a lime", "a teaspoon of rice vinegar", "a teaspoon of hot chilli sauce" ] } ], "instructions": [ "Slice half a cucumber in half lengthways, scrape out its seeds with a teaspoon then cut the flesh into matchsticks.", "Very finely slice a mild, long red chilli, then cut a medium-sized carrot into small matchstick-style pieces.", "Shred a spring onion.", "Pour a kettle of boiling water over 50g glass noodles and let them soak for a few minutes.", "Moisten 2 large spring roll wrappers in warm water, lay them on a work surface, then divide the shredded vegetables between them, tucking 6 or 7 basil leaves, 6 or 7 mint leaves and 6 or 7 coriander leaves into each one as you go.", "Lay 4 slim chives on to each one, then wrap the vegetables up into parcels.", "Make a dip for the summer rolls by mixing together a tablespoon of ponzu sauce, the juice of half a lime, a teaspoon of rice vinegar and a teaspoon of hot chilli sauce.", "Eat the rolls, cut into two, with the dip." ], "author": null }
- Assistantjson
{ "data": "WAS" }