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\nMY MOTHER-IN-LAW, AUDREY-we call her "Koko," the Meskwaki name for grandmother-was a sun tea lover.\nShe was a pro at making it, too! Her sun tea was golden and crisp. My daughters added a twist to her already great tea\nwith homemade simple 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": [ "1. 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.", "2. 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": "" }
- Assistant
{ "data": "WNA" }