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é.
code1. 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": "Tomato Caesar Bruschetta", "description": null, "subtitle": "Crisp, sweet, luscious.", "ingredients": [ { "section": "For the recipe", "ingredients": [ "400g tomatoes", "2 Little Gem lettuces", "a little oil", "2 garlic cloves", "an egg yolk", "a tablespoon of white wine vinegar", "a tablespoon of Dijon mustard", "4 tablespoons of olive oil", "a large ciabatta loaf" ] } ], "instructions": [ "Slice 400g tomatoes in half and place them, cut-side up, on a grill pan or baking sheet.", "Cut 2 Little Gem lettuces in half and tuck them in amongst the tomatoes.", "Season, trickle with a little oil, then grill for a few minutes, till the lettuce has just started to colour and the tomatoes are soft.", "Make the dressing.", "Peel 2 garlic cloves and drop them into a blender.", "Add an egg yolk, a tablespoon of white wine vinegar, a tablespoon of Dijon mustard, then 4 tablespoons of olive oil.", "Blend till smooth and thick.", "(You can also do this by hand, in the way you would make mayonnaise, beating the oil into the other ingredients with a balloon whisk.)", "Check the seasoning.", "Split a large ciabatta loaf and toast it on the cut sides.", "Place toasted-side up on a board, trickle over a generous amount of olive oil, then cover with the tomatoes and lettuce.", "Spoon over the dressing and eat immediately, whilst the tomatoes are still hot and the bread is crisp." ], "author": null }
- Assistantjson
{ "data": "FR" }