Aller au contenu
Skillpedia
Agents22k · #10202

agent-platform-eval-flywheel

Ce qu’il fait

Il utilise le SDK d'évaluation d'Agent Platform pour noter des agents ou des modèles, repérer des régularités dans les échecs et proposer des corrections à retester. Il s'adresse aux développeurs qui veulent mesurer la qualité avant et après un changement.

Quand l’utiliser

  • ✓Quand vous voulez évaluer un agent ou un modèle IA avec un jeu de tests reproductible.
  • ✓Quand vous devez construire un jeu de données d'évaluation à partir de traces ou d'un tableau.
  • ✓Quand vous voulez comparer les résultats avant et après une correction.

Lien du skill

https://github.com/google/skills/blob/main/skills/cloud/agent-platform-eval-flywheel/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/agent-platform-eval-flywheel/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Évalue mon agent sur un jeu de tests que je peux réutiliser, puis dis-moi les schémas d'échec et ce qu'il faut corriger.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il construit ou vérifie le jeu de données, lance l'évaluation, lit les verdicts et les schémas d'échec, puis suggère des modifications de code ou de prompt à tester ensuite. Les étapes qui consomment des ressources de calcul sont confirmées au préalable.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Agent Platform Eval Flywheel Skill

Help users evaluate and iteratively improve GenAI models and agents using the Agent Platform GenAI Evaluation SDK (google.genai / agentplatform).

When to use this skill

  • Evaluating GenAI agents or models with the Agent Platform GenAI Evaluation SDK (client.evals.evaluate()).
  • Creating evaluation datasets from session traces, pandas DataFrames, or synthetic generation.
  • Selecting, configuring, or writing custom evaluation metrics.
  • Analyzing rubric verdicts, loss patterns, and clustering failures.
  • Suggesting concrete code/prompt improvements based on eval results.
  • Evaluating a model served on an Agent Platform endpoint (BYOM) or a Model-as-a-Service (MaaS) model by ID — including deploying the model first if needed. For this case, follow references/deployment.md and use the endpoint_evaluation.py / maas_evaluation.py scripts.

Safety & Confirmation Tiers (CRITICAL)

Before executing any commands or scripts on behalf of the user, you MUST adhere to the following safety tiers based on the action requested:

  1. Tier R: Read-only (inspect_results.py, compare_results.py, validate_dataset.py, parse_adk_traces.py, render_html_report.py)
    • Rule: No confirmation needed. You may execute these helper scripts immediately to inspect data, validate schemas, parse traces, or compare evaluation results.
  2. Tier M: Read-only with Compute Costs (client.evals.run_inference, client.evals.evaluate, client.evals.generate_conversation_scenarios, client.evals.generate_loss_clusters)
    • Rule: These operations invoke LLMs or remote evaluation services that consume compute resources and incur costs. This requires interactive confirmation with 'Yes'/'No' options.
    • Confirmation for EVERY evaluation run: Every evaluation, re-evaluation, metric update, parameter change, or synthetic scenario generation requires its own dry-run preview and interactive confirmation. Never execute a second evaluation, comparison pass, or modified evaluation without presenting a new confirmation preview and obtaining user approval.
    • Same-turn restriction: Do not run the evaluation in the same turn as presenting the confirmation prompt. End your turn after asking and wait for the user's reply; only execute after explicit 'Yes' / approval. Printing a preview and then calling the tool before the user can answer does not count as obtaining confirmation.
    • No Pre-Execution of Remote Evaluation: NEVER execute client.evals.evaluate(), client.evals.run_inference(), client.evals.generate_conversation_scenarios(), or run any script invoking these remote operations before user confirmation. In the initial turn, you may prepare local data structures and compose the script, but you MUST present the dry-run preview card and obtain explicit user confirmation before running any remote evaluation or scenario generation call.
    • Immediate Execution Upon Approval: Once the user explicitly approves (e.g., 'Yes', 'Approved', 'Go ahead', 'Proceed'), proceed directly to executing the previewed evaluation script via run_command and report the results. Do not conclude the turn without executing the approved action.

Setup

The scripts need vertexai (from google-cloud-aiplatform[evaluation]), google-genai, pandas, and requests. Do not create a virtual environment — it starts empty and hides packages the environment already provides, forcing a redundant install. Probe, and install only what is missing:

python3 -c "import vertexai, google.genai, pandas, requests" \
  || pip install 'google-cloud-aiplatform[evaluation]>=1.163.0' 'google-genai>=1.0.0'

The version specifiers must stay quoted: unquoted, bash reads >=1.154.0 as a redirect and silently writes an empty file instead of constraining the install.

Need GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION.

  • Preserve User Project and Location: Always prioritize the user's explicitly provided project and location (e.g. project='<PROJECT_NUMBER>', location='us-central1'). Never change or override the user's requested location to 'global' unless the user expl
Questions fréquentes

Lance-t-il des évaluations de lui-même ?

Les étapes d'aide en lecture seule s'exécutent librement, mais les étapes qui utilisent des ressources de calcul sont confirmées au préalable.

Peut-il évaluer un modèle sur un point de terminaison ?

Oui. Il peut évaluer un modèle servi, en le déployant d'abord si nécessaire.

Quel SDK utilise-t-il ?

Le SDK GenAI Evaluation d'Agent Platform.

Détails

Description originale de l’auteur

Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a fix, or when guidance is needed on Agent Platform eval methodology — including dataset schema, LLM-as-judge scoring, and common failure causes. For fine-tuning, use agent-platform-tuning. For general production deployment, use agent-platform-deploy.

repo: google/skills

Popularité

Étoiles GitHub
22k
Position au classement
#10202
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires