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": "Black-Eyed Peas With Sausage", "description": "Black-Eyed Peas With Sausage is a hearty and flavorful dish that combines the richness of sausage with the earthiness of black-eyed peas. Perfect for a family gathering or a cozy meal at home.", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 pound dried black-eyed peas", "1 pound ground hot Italian pork sausage", "1 large onion, diced", "1 celery stalk, diced", "4 cloves garlic, diced", "1/4 cup all-purpose flour", "2 (32-ounce) cartons chicken stock", "1 tablespoon Pork Rub (see recipe, see here)", "1 teaspoon kosher salt", "1 teaspoon ground pepper", "1 bay leaf" ] } ], "instructions": [ "Rinse black-eyed peas in a colander under cold running water, and transfer to a bowl. Add water to cover, then soak overnight in refrigerator.", "In a large Dutch oven over medium-high heat, cook ground sausage, breaking up meat with a wooden spoon, until browned, 5 to 7 minutes. Add onion, celery, and garlic, and cook for 5 minutes. Add flour, and cook until slightly browned. Add 1 carton chicken stock.", "Drain peas. Mix peas, Pork Rub, salt, pepper, and bay leaf into sausage mixture. Add more chicken stock, if needed, to cover peas completely. Bring to a boil, reduce heat, and simmer gently until beans are tender, 1 to 1½ hours.", "Transfer a ladleful of peas to a bowl, and smash with a fork. Return smashed peas to pot, and cook until liquid thickens. Add remaining chicken stock to reach desired soupiness, if needed. Discard bay leaf. Taste and adjust seasoning as needed." ], "author": "MOE CASON" }
- Assistant
Pour la recette fournie, le terme "Sausage" et les ingrédients tels que les "black-eyed peas" (pois à yeux noirs) et le "Pork Rub" suggèrent une origine principalement associée à la cuisine du Sud des États-Unis, où ces ingrédients sont populaires. Cela nous amène à identifier le pays correspondant.
Le pays en question étant les États-Unis, nous pouvons utiliser son code ISO 3166-1 alpha-2.
Voici le format JSON structuré demandé :
{ "data": "US" }