Goal L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal L'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 Tu dois renvoyer 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": "Koko's Sun Tea", "description": "Koko's Sun Tea is a refreshing beverage that's perfect for warm days, made with a delightful mix of English breakfast and Earl Grey teas, sweetened with homemade syrups.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "8 English breakfast tea bags", "4 Earl Grey tea bags", "1 gallon spring or filtered water", "½ cup Honey Syrup", "½ cup Citrus Syrup" ] }, { "section": "Honey Syrup", "ingredients": [ "1 cup water", "½ cup honey" ] }, { "section": "Citrus Syrup", "ingredients": [ "1½ cups water", "1 cup sugar", "peel from 1 lemon", "peel from 1 orange" ] } ], "instructions": [ "Place tea bags in a gallon-size jar, and fill with water; place cover or cap loosely on jar. Place jar in direct sunshine. Steep tea for 3 to 4 hours.", "Remove and discard tea bags. Sweeten tea with Honey Syrup and Citrus Syrup to taste. Serve over ice.", "Honey Syrup: Cook 1 cup water and ½ cup honey in a small medium saucepan over medium heat until blended, stirring occasionally, 3 to 5 minutes. Remove from heat, and let syrup cool before use.", "Citrus Syrup: In a medium saucepan, stir together 1½ cups water, 1 cup sugar, and peel from 1 lemon and 1 orange. Bring to a boil, and cook until sugar dissolves, stirring occasionally, 3 to 5 minutes. Remove from heat, discard peels, and let syrup cool before use." ], "author": "Unknown" }
- Assistant
Pour la recette "Koko's Sun Tea," il n'y a pas de pays explicitement mentionné, mais étant donné les ingrédients comme le thé anglais (English breakfast tea) et la mention d'agrumes, cela renvoie à des pratiques largement associées à la culture britannique. Le code ISO 3166-1 alpha-2 pour le Royaume-Uni est "GB".
Voici le format JSON structuré avec le code correspondant :
{ "data": "GB" }