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": "Mushroom Gravy", "description": "I admit that I could eat this by the bowlful, biscuits be damned. But if you have not achieved the level of vegan-ness that I have, you might want to serve it on stuff, like Basic Scrambled Tofu (page 19) or Tempeh Sausage Pastry Puffs (page 129) or on practically any brunch item that gets set in front of you. Except for French toast; don't do that.", "subtitle": "Makes about 6 cups", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups vegetable broth", "¼ cup flour (use 1/3 cup for a thicker gravy)", "2 tablespoons olive oil", "1 medium onion, thinly sliced into 12-inch-long pieces", "10 ounces cremini mushrooms, thinly sliced (about 4 cups)", "3 garlic cloves, minced", "1 teaspoon thyme", "½ teaspoon sage", "1/4 teaspoon salt", "Several dashes fresh black pepper", "1/4 cup white cooking wine (or any nonsweet wine will do)" ] } ], "instructions": [ "Mix the flour into the broth until dissolved and set aside.", "Preheat a large nonstick pan over medium heat.", "Sauté the onion in the oil for about 5 minutes, until translucent.", "Add the mushrooms and sauté for 5 more minutes, until the mushrooms are tender.", "Add the garlic, thyme, sage, salt, and pepper.", "Sauté for another minute.", "Add the wine and turn the heat up to bring to a simmer.", "Let simmer for about a minute, then lower the heat and add the broth mixture.", "Stir constantly until thickened, about 5 minutes.", "If not serving the gravy immediately, gently reheat it when you are ready to serve." ], "author": null }
- Assistant
{ "data": "WWW" }