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": "Howl's Bacon & Eggs", "description": "In Howl's Moving Castle, after meeting the wizard Howl, Sophie is cursed by a witch who steals her youth and transforms her into an old woman. Even when Sophie prepares breakfast for Howl and his apprentice, the wizard does not recognize her true identity. The film's setting is decidedly European, and the meal is a traditional, hearty English breakfast served with rye bread and cheese. This bacon and egg omelet sandwich is a simple yet satisfying meal.", "subtitle": "From Howl's Moving Castle", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 slices bacon", "Olive oil for cooking (or cooking oil of choice)", "2 eggs", "1/2 teaspoon garlic powder (or to taste)", "Salt and pepper", "1 slice sandwich bread, crust removed" ] } ], "instructions": [ "In an oiled pan, fry the bacon slices on each side until crispy. Set aside.", "Beat the eggs with the garlic powder (feel free to add less than the full ½ teaspoon, if desired), adding salt and pepper to taste.", "Cut the slice of bread in half.", "Pour the eggs into the hot pan and place the bread slices in the center. Flip the bread immediately so that both sides are coated.", "When the eggs have solidified, fold all four sides of the omelet toward the center of the pan.", "Cut the cooked bacon slices into pieces and arrange them on the omelet.", "Quickly fold the omelet in half to form a sandwich, with a slice of bread on each side." ], "author": null }
- Assistant
{ "data": "GB" }