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": "Spiced Haddock Chowder", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 haddock fillets", "500ml milk", "2 bay leaves", "6 black peppercorns", "1 onion", "butter", "1 carrot", "1 medium-sized swede", "1 waxy, yellow-fleshed potato", "1 teaspoon of mustard seeds", "1 teaspoon of turmeric", "2 tablespoons of plain flour", "a small handful of chopped parsley" ] } ], "instructions": [ "Cut 2 haddock fillets in half and place them in a deep pan with 500ml milk, 2 bay leaves and 6 black peppercorns.", "Bring the milk to the boil and leave to infuse with the heat off and a lid on.", "Roughly chop an onion and fry it over a low heat in a little butter.", "Finely dice a carrot, a medium-sized swede and a waxy, yellow-fleshed potato and add to the onion.", "Fry for 5-10 minutes, till lightly browned.", "Stir in a teaspoon of mustard seeds and a teaspoon of turmeric and cook for 5 minutes.", "Remove the haddock from the milk, reserving the milk.", "Scatter 2 tablespoons of plain flour over the vegetables and cook for a couple of minutes.", "Pour the infused milk into the pan and cook, stirring continuously, until you have a thick sauce.", "Place the haddock briefly in the pan to warm through, then add a small handful of chopped parsley before serving." ], "author": null }
- Assistant
{ "data": "GB" }