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": "SOLE MEUNIÈRE", "description": "A classic French dish that perfectly showcases the delicate flavors of sole, made even more delicious with a rich butter sauce.", "subtitle": "ALLARD", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "12 (60G 2.12 OUNCE) LINE-CAUGHT SOLE FILLETS", "SALT", "FRESHLY GROUND PEPPER", "100G 3.53 OUNCES (3/4 CUP PLUS 1 TABLESPOON) FLOUR", "50ML 3 1/2 TABLESPOONS OLIVE OIL", "200G 7 OUNCES (1 3/4 STICKS) SOFT BUTTER", "JUICE OF 1 LEMON", "LEAVES FROM 1 STEM FLAT-LEAF PARSLEY, MINCED" ] } ], "instructions": [ "Use scissors to cut off the fins, if necessary.", "Rinse the fish under running water and dry on paper towels.", "Season with salt and pepper, and dredge in the flour.", "In a skillet or frying pan with the olive oil, brown the fish on each side over high heat.", "Then remove from the pan and let rest.", "Put the butter into the pan and make a beurre noisette.", "Return the fish to the pan and finish cooking by basting continuously with the melted butter.", "Arrange the fish on a platter.", "Deglaze the beurre noisette with the lemon juice.", "Drizzle the fish with this sauce and serve the rest separately in a sauceboat; sprinkle with the parsley." ], "author": "" }
- Assistantjson
{ "data": "FR" }