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": "Tuna Onigiri", "description": "Onigiri are the ultimate Japanese street food: balls of rice generally shaped into triangles and wrapped in a piece of nori. They are typically filled with fish, pickled umeboshi plums, or a wide variety of meats or condiments. Filling and relatively healthy, the simple onigiri contrasts with the rich foods scarfed down by Chihiro's parents.", "subtitle": "Spirited Away", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup uncooked jasmine rice", "4 tablespoons distilled white vinegar", "1 teaspoon salt (or to taste)", "2 teaspoons sugar (or to taste)", "One 5-ounce can tuna", "1 tablespoon mayonnaise (or more, to taste)", "4 strips toasted nori" ] } ], "instructions": [ "Add the rice to a pot and rinse thoroughly until the water runs clear; then pour in enough water to cover the rice by about half an inch. Cook the rice.", "Pour the vinegar over the cooked rice. Add the salt and sugar, and stir (feel free to use less salt and sugar, if desired).", "Break up the tuna in a bowl, and thoroughly mix in the mayonnaise (feel free to use more than 1 tablespoon, if desired).", "Wet your hands and form four cakes of rice. Spread a flat layer of tuna over each, and then cover with another flat cake of rice. Shape the filled rice into balls, and mold the corners to form triangles.", "Moisten the nori strips and wrap them around the onigiri." ], "author": null }
- Assistant
{ "data": "JP" }