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": "Garlic Chips", "description": "Garlic chips are an excellent condiment for all types of soups and salads, but they're really good as a finishing touch for ramen and some pho. They add deep, assertive flavor as well as a bit of crunch.", "subtitle": "An excellent condiment for soups, salads, ramen, and pho.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "20 plump garlic cloves", "Neutral-tasting oil", "Fine sea salt" ] } ], "instructions": [ "Peel the garlic and then slice it very thinly.", "Pour about ½ inch of oil into a small skillet or saucepan over medium-low heat.", "Once hot, add the garlic.", "Adjust the heat as necessary to maintain a gentle simmer.", "Cook, stirring frequently, until the garlic is golden brown, which will take 5 to 15 minutes (the time varies depending on how thin you slice your garlic).", "It's important to watch closely and not let the chips burn.", "Use a spider skimmer or slotted spoon to transfer the garlic to a paper towel-lined plate.", "Sprinkle with a big pinch of salt and let cool completely.", "Stored in an airtight container at room temperature, they'll keep for 1 or 2 days." ], "author": null }
- Assistantjson
{ "data": "WWW" }