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": "French-bean salad", "description": "Fresh vegetables combine to create a colorful and delicious salad. A perfect option for a light meal or a side dish.", "subtitle": "A refreshing vegetable salad", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 shallot", "250 g of French beans", "100 g small fresh mushrooms", "1 romaine lettuce heart", "12 fresh almonds", "1 lemon", "A pinch of salt", "3 to 4 tablespoons of olive oil", "20 g of parmesan", "Freshly ground black pepper" ] } ], "instructions": [ "Peel 1 shallot and slice into fine rounds. Put them on a small plate, sprinkle with a tablespoon of red wine vinegar and leave to marinate for 30 minutes.", "In the meantime, de-string and wash 250 g of French beans, then immerse them in boiling salted water for 5 to 7 minutes, keeping them crunchy.", "Prepare a basin with water and ice cubes. Drain the French beans and refresh immediately in this iced water.", "Cut the base off 100 g small fresh mushrooms. Wash the caps quickly, dry them and cut into fine slices.", "Rinse and dry the leaves of 1 romaine lettuce heart.", "Shell 12 fresh almonds and cut them in half.", "Squeeze the juice of 1 lemon and pour into a salad bowl. Add a pinch of salt, stir, then add 3 to 4 tablespoons of olive oil.", "Place the French beans, mushrooms, romaine lettuce leaves and almonds in the salad bowl, and toss gently.", "Sprinkle the shallot rounds on top. Then, with a vegetable peeler, cut 20 g of parmesan into fine shavings and add them to the top.", "Finish with a generous twist of freshly ground black pepper." ], "author": "" }
- Assistant
{ "data": "FR" }