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": "GREEN BEANS", "description": "A fresh and delightful appetizer featuring green beans dressed with a zesty lemon cream, perfect for any occasion.", "subtitle": "à la Parisienne", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "800G 1 POUND 12 OUNCES GREEN BEANS", "2 LETTUCE HEARTS (ROMAINE)", "1 SHALLOT", "200ML 3/4 CUP PLUS 1 TABLESPOON LIGHT CREAM", "JUICE OF 1 LEMON", "SALT", "FRESHLY GROUND PEPPER", "3 MEDIUM WHITE MUSHROOMS", "SEVERAL TOMATO CONFIT PETALS (SEE P. 251)", "20 GREEN ALMONDS, PEELED", "FLEUR DE SEL" ] } ], "instructions": [ "Trim off the ends of the green beans and boil in salted water for 10 minutes.", "Shock in ice water.", "Drain them and lay on a kitchen towel.", "Separate the lettuce leaves, finely mince them, and set aside.", "Peel and mince the shallot.", "Transfer to a bowl and beat with the cream.", "Add the lemon juice, salt, and pepper.", "Continue whisking briskly for about 5 minutes until the cream starts to turn fluffy.", "Set aside.", "In a bowl, dress the green beans with the lemon cream and season with salt and pepper.", "Clean and slice the mushrooms.", "Arrange the beans over the lettuce in bowls.", "Decorate with sliced mushrooms, tomato confit petals, and almonds.", "Season with fleur de sel and freshly ground pepper." ], "author": "ALLARD" }
- Assistant
{ "data": "FR" }