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": "LOADED BAKED POTATO", "description": "For cooking this rich and creamy soup, soak diced potatoes in cold water until ready to use to keep them from turning brown. To make bacon easier to chop, lightly freeze.", "subtitle": "LEFT THE MENU BUT NOT FORGOTTEN", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 pound bacon, roughly chopped", "1 medium yellow onion, diced", "1 large carrot, peeled and diced", "4 large russet potatoes, peeled and diced", "3/4 cup diced celery", "4 medium red potatoes, diced", "1/4 cup flour", "2 cups chicken or vegetable stock", "coarse salt, to taste", "freshly ground pepper, to taste", "4 cups heavy cream" ] }, { "section": "OPTIONAL GARNISHES", "ingredients": [ "chopped chives", "bacon bits", "sour cream", "shredded cheeses, cheddar and Monterey Jack preferred" ] } ], "instructions": [ "In a 6- to 8-quart stockpot over medium heat, carefully fry bacon until crisp.", "Remove bacon and drain on paper towels (reserve half for garnish).", "In the bacon fat, cook onions, carrots, and celery until the onions are translucent.", "Add potatoes and cook for 4 minutes, stirring occasionally.", "Sprinkle in flour and stir constantly over low heat about 5 to 7 minutes until mixture has thickened slightly.", "Add stock and half of bacon.", "Season with salt and pepper.", "Over medium-high heat, bring the soup to a simmer and cook for 25 minutes, or until the potatoes are soft.", "Mash some of the potatoes for thicker, creamier texture.", "Add cream and simmer for 5 minutes.", "Adjust thickness by adding water or stock. Soup should have a creamy consistency.", "Season to taste, and garnish with toppings if desired." ], "author": null }
- Assistant
{ "data": "WNA" }