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": "POTATO PANCAKES WITH CHIVE SOUR CREAM", "description": "This savory appetizer is paired at EPCOT International Food & Wine Festival with a sparkling brut wine. The starchier the potato, the crisper the potato pancake: use the classic Idaho or russet.", "subtitle": "STARTERS", "ingredients": [ { "section": "CHIVE SOUR CREAM", "ingredients": [ "1/2 cup sour cream", "1 bundle chives, finely chopped (at least 2 tablespoons)", "coarse salt, to taste", "freshly ground black pepper, to taste", "juice from 1 lemon, optional" ] }, { "section": "POTATO PANCAKES", "ingredients": [ "1 pound classic Idaho or russet potatoes, peeled", "1 small onion", "2 eggs", "3 tablespoons flour", "coarse salt, to taste", "vegetable oil for frying" ] } ], "instructions": [ "Mix ingredients together in a small bowl.", "Coarsely grate potatoes and onion with box grater or food processor fitted with grating disk.", "Press potatoes and onions to extract as much liquid as possible.", "Stir potatoes and onions with eggs and flour in a large bowl. (Mix well, but don't overwork.) Season with salt.", "Heat 3 tablespoons oil in large, heavy skillet. When hot enough to sizzle a drop of water, carefully drop a tablespoonful of potato mixture into skillet, pressing with a spatula to slightly flatten.", "Cook until golden brown on bottom, about 4 to 5 minutes.", "Gently flip and cook until golden brown on the other side, 4 to 5 minutes.", "Repeat with remaining potato mixture and more oil.", "Transfer to paper towels to drain; season with salt.", "Keep warm on baking sheets in oven while making remaining pancakes.", "Serve pancakes hot, drizzled with chive sour cream." ], "author": null }
- Assistant
{ "data": "US" }