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": "ONION SOUP", "description": "A classic French onion soup that's rich and flavorful, perfect for warming you up on a chilly day.", "subtitle": "APPETIZERS 65", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "10 WHITE ONIONS", "150G 5.29 OUNCES PEPPERED CURED PORK SIDE (BELLY)", "OLIVE OIL", "2 CLOVES GARLIC", "2 LITERS 8 1/2 CUPS CHICKEN BROTH (SEE P. 245)", "SALT", "FRESHLY GROUND WHITE PEPPER", "80G 2.82 OUNCES BACON OR LARDO DI COLONNATA, THINLY SLICED", "4 (2CM 3/4 INCH-THICK) SLICES PAIN DE CAMPAGNE", "40G 1.41 OUNCES (1/3 CUP) SHREDDED EMMENTAL CHEESE" ] } ], "instructions": [ "Peel and finely slice* the onions.", "Cut the pork side into lardons of a good size. Set aside*.", "Heat a little olive oil in a large saucepan and brown* the lardons.", "Add the onions and unpeeled garlic cloves. Gently caramelize.", "Add the chicken broth. Simmer for 45 minutes.", "Adjust the seasoning.", "Heat a little olive oil in a sauté pan*.", "Lay the slices of bacon flat in the pan.", "Cover with parchment paper and place a weight on top.", "Cook gently for 10 minutes, until the slices are golden and crispy.", "Toast the pain de campagne slices.", "Halve each slice to make eight pieces.", "Pour the soup into four individual soup tureens.", "Cover four of the toast slices with bacon or lardo di colonnata and four with cheese.", "Set under the broiler to melt the cheese.", "Serve a slice of each type of toast on the side." ], "author": "ALLARD" }
- Assistant
{ "data": "FR" }