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": "Spaghetti", "description": "Confused like Linguini? Have spaghetti! Linguini is a distinct character who is mostly confused or scared. His hair, too, resembles spaghetti or noodles. It might be difficult to understand Linguini, but it is very easy to understand a simple spaghetti recipe. So, let's get started.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "250 grams pasta", "1 carrot", "1 green bell pepper", "1 teaspoon oregano", "1 teaspoon red chili flakes", "1/4 cup fresh cream", "Salt", "1 tablespoon olive oil" ] }, { "section": "Sauce for the pasta", "ingredients": [ "500 grams tomatoes", "6 finely chopped garlic", "1 onion", "4 basil leaves", "1 tablespoon olive oil", "Salt", "Pepper" ] } ], "instructions": [ "Boil pasta in hot water, with a little bit of salt.", "Once you have boiled the pasta, strain the extra water and wash the boiled pasta in cold water.", "Once done, put some olive oil in the pasta and keep it aside.", "To prepare the sauce, add half-cut tomatoes into the pressure cooker.", "Once the tomatoes are ready, give some time to the tomatoes to cool down.", "At this stage, the skin of the tomato would have already started coming out. Remove the skin of the tomatoes.", "Now, transfer the tomatoes into a mixer and make a smooth tomato paste.", "Let the tomato paste rest for a while.", "In a saucepan, heat the olive oil. Once the olive oil is warm, add garlic and onion.", "After the onion and garlic are quite cooked, add the tomato paste, basil leaves, chili flakes, oregano, salt, and pepper.", "Cook them gently for 3-4minutes.", "Once cooked, add spaghetti to the tomato puree.", "At this stage, add the cream to the spaghetti and mix it gently on high heat. The spaghetti should by now be evenly coated in the sauce.", "And voila, you are ready to serve the spaghetti." ], "author": null }
- Assistantjson
{ "data": "IT" }