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": "FREEKEH SOUP", "description": "Freekeh, a cracked, roasted green wheat with a distinct taste, can be cooked like rice or bulgur. This soup, a family favorite, was often made with leftover freekeh or broth from chicken dishes. The addition of sumac adds a unique sour flavor.", "subtitle": "شوربة فريكه", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 tablespoon olive oil", "1 teaspoon clarified butter", "1 onion, very finely chopped", "1 cup (5 oz/150 g) freekeh", "½ tablespoon Nine Spice Mix (page 24)", "1/4 teaspoon ground cumin", "1 tablespoon sumac, plus extra to serve", "8 cups (3½ pints/2 litres chicken broth (stock), homemade (page 34) or store-bought", "salt", "chopped flat-leaf parsley, to serve" ] } ], "instructions": [ "Heat the oil and butter in a large pan.", "Add the onion and cook over medium heat for about 5 minutes, stirring occasionally, until the onions are soft and translucent.", "Add the freekeh and spices to the onions and stir for 2-3 minutes until the grains are fragrant.", "Pour the broth (stock) over the freekeh and bring to a boil.", "Cook for 10 minutes then reduce the heat, cover, and simmer until the freekeh is cooked but a little al dente, 10-15 minutes.", "Season to taste with salt (the amount will depend on the kind of broth you have used).", "Ladle into bowls and sprinkle with sumac and chopped parsley to serve." ], "author": null }
- Assistantjson
{ "data": "WAS" }