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": "CERVELLE des Canuts", "description": "Un délicieux dip fromager à base de faisselle accompagné de tartines croustillantes, parfait pour un apéritif convivial.", "subtitle": "AUX LYONNAIS", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "250G 8.82 OUNCES (1 CUP PLUS 2 TABLESPOONS) FAISSELLE CHEESE (FROMAGE FRAIS)", "1 SHALLOT", "1 CLOVE GARLIC", "1/4 BUNCH FLAT-LEAF PARSLEY", "1/4 BUNCH CHIVES", "1/4 BUNCH TARRAGON", "15G 0.53 OUNCE (1 TABLESPOON) HEAVY CREAM", "FLEUR DE SEL", "FRESHLY GROUND PEPPER", "2 TEASPOONS WALNUT OIL", "1 TEASPOON ROASTED CANOLA OR RAPESEED OIL", "20ML 4 TEASPOONS AGED RED WINE VINEGAR", "1/2 LOAF PAIN DE CAMPAGNE", "2 TEASPOONS OLIVE OIL" ] } ], "instructions": [ "Drain the cheese on paper towels over a small bowl for 10 minutes; put into a medium bowl.", "Peel and mince* the shallot.", "Peel the garlic clove and chop.", "Coarsely chop* the parsley, chives, and tarragon.", "Mix the shallot, garlic, and herbs with the cheese and cream in the bowl.", "Season with fleur de sel and pepper.", "Add the walnut oil, canola oil, and vinegar, and mix again.", "Refrigerate.", "Cut the bread into strips, brush with olive oil, and toast. (These strips of toast are the 'soldiers.')", "Serve the cervelle des canuts dip in individual ramekins with the toast soldiers on the side." ], "author": "" }
- Assistantjson
{ "data": "FR" }