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": "Big Mama's Beef Stock", "description": "A rich and savory cooking staple.", "subtitle": "A rich and savory cooking staple", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 leek", "Trimmings from 1 (14- to 16-pound) brisket", "5 to 8 smoked beef rib bones", "2 large yellow onions, peeled and quartered", "3 carrots, cut into thirds", "3 celery stalks, cut into thirds", "1 head garlic, peeled and halved", "2 beef bouillon cubes", "2 bay leaves", "3 sprigs fresh thyme", "1 sprig fresh rosemary", "Handful of fresh parsley leaves", "1 teaspoon store-bought Big Moe Cason Beef Rub", "1 teaspoon kosher salt", "1 teaspoon coarse pepper (or whole peppercorns)", "1 whole clove" ] } ], "instructions": [ "Remove root end and tough green tops from leek. Quarter leek. Place leek in a bowl of water, and swirl gently to remove grit and sand.", "Place all ingredients in an 8-quart stockpot, and add water to cover by 2 inches. Bring to a boil over high heat, then reduce heat to low.", "Cover loosely and let simmer, skimming as necessary, for 5 hours. If water level gets too low, add a bit more boiling water.", "Strain mixture, and discard solids. Let stock cool before using. Refrigerate up to 4 days or freeze up to 3 months." ], "author": "" }
- Assistant
{ "data": "WNA" }