Agentique : appels d'outils (2/4)

à consulter, pas à lire d'affilée.

Appel d'outils : bon outil, bons arguments, ne pas appeler à tort. 27 tests sur cette page (100 dans la catégorie) : la question exacte posée au modèle et la règle écrite à l'avance qui la corrige. Validation : automatique.

Consigne système commune : Tu disposes des outils suivants : - get_weather(city: string) - search_web(query: string) - read_file(path: string) - calculator(expression: string) - send_email(to: string, subject: string) - get_time(timezone: string) Pour utiliser un outil, réponds UNIQUEMENT par un JSON {"tool": "<nom>", "args": {...}}. Si aucun outil n'est nécessaire, réponds normalement en texte, sans JSON.

testquestion poséecomment c'est corrigé
meteo-15Quel temps fait-il à Metz en ce moment ?JSON valide, valeurs {"tool": "get_weather", "args": {"city": "Metz"}}
meteo-16Va-t-il pleuvoir à Reims aujourd'hui ?JSON valide, valeurs {"tool": "get_weather", "args": {"city": "Reims"}}
meteo-17Donne-moi la météo de Caen.JSON valide, valeurs {"tool": "get_weather", "args": {"city": "Caen"}}
meteo-18Quel temps fait-il à Limoges en ce moment ?JSON valide, valeurs {"tool": "get_weather", "args": {"city": "Limoges"}}
meteo-19Va-t-il pleuvoir à Pau aujourd'hui ?JSON valide, valeurs {"tool": "get_weather", "args": {"city": "Pau"}}
fichier-0Lis le fichier config/app.yaml et dis-moi ce qu'il contient.JSON valide, valeurs {"tool": "read_file", "args": {"path": "config/app.yaml"}}
fichier-1Ouvre README.md pour moi.JSON valide, valeurs {"tool": "read_file", "args": {"path": "README.md"}}
fichier-2Que contient src/main.py ?JSON valide, valeurs {"tool": "read_file", "args": {"path": "src/main.py"}}
fichier-3Lis le fichier data/clients.csv et dis-moi ce qu'il contient.JSON valide, valeurs {"tool": "read_file", "args": {"path": "data/clients.csv"}}
fichier-4Ouvre logs/erreur.log pour moi.JSON valide, valeurs {"tool": "read_file", "args": {"path": "logs/erreur.log"}}
fichier-5Que contient docs/guide.txt ?JSON valide, valeurs {"tool": "read_file", "args": {"path": "docs/guide.txt"}}
fichier-6Lis le fichier package.json et dis-moi ce qu'il contient.JSON valide, valeurs {"tool": "read_file", "args": {"path": "package.json"}}
fichier-7Ouvre notes/todo.md pour moi.JSON valide, valeurs {"tool": "read_file", "args": {"path": "notes/todo.md"}}
fichier-8Que contient src/utils/helpers.js ?JSON valide, valeurs {"tool": "read_file", "args": {"path": "src/utils/helpers.js"}}
fichier-9Lis le fichier tests/test_api.py et dis-moi ce qu'il contient.JSON valide, valeurs {"tool": "read_file", "args": {"path": "tests/test_api.py"}}
fichier-10Ouvre Dockerfile pour moi.JSON valide, valeurs {"tool": "read_file", "args": {"path": "Dockerfile"}}
fichier-11Que contient requirements.txt ?JSON valide, valeurs {"tool": "read_file", "args": {"path": "requirements.txt"}}
fichier-12Lis le fichier docs/changelog.md et dis-moi ce qu'il contient.JSON valide, valeurs {"tool": "read_file", "args": {"path": "docs/changelog.md"}}
fichier-13Ouvre data/prix.json pour moi.JSON valide, valeurs {"tool": "read_file", "args": {"path": "data/prix.json"}}
fichier-14Que contient scripts/deploy.sh ?JSON valide, valeurs {"tool": "read_file", "args": {"path": "scripts/deploy.sh"}}
recherche-0Trouve-moi les résultats de la dernière finale de Roland-Garros.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : Roland-Garros
recherche-1Trouve-moi la population actuelle de la Norvège.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : Norvège ; Norway
recherche-2Trouve-moi les horaires du musée d'Orsay.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : Orsay
recherche-3Trouve-moi le cours actuel du bitcoin.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : bitcoin ; btc
recherche-4Trouve-moi les dernières actualités sur l'exploration de Mars.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : Mars
recherche-5Trouve-moi la recette officielle de la ratatouille niçoise.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : ratatouille
recherche-6Trouve-moi le classement actuel de la Ligue 1.JSON valide, clés tool ; args, valeurs {"tool": "search_web"}
doit contenir l'un de : Ligue 1

Ces tests décrivent le banc, pas un résultat : aucun modèle n'a encore été noté. Les règles sont décrites sur la page du banc.

Autres pages de cette catégorie

Les autres catégories