Logo vun Cxas Sim Eval

Cxas Sim Eval

Organisatioun
GoogleCloudPlatform
cxas-sim-eval

Converts CXAS golden evaluations to SCRAPI SimulationEvals test cases. Use when generating high-level, goal-oriented test cases from turn-by-turn evaluation JSONs, and when enriching test expectations with inferred tool calls.

Iwwersiicht

EditeurGoogleCloudPlatform
Repositorycxas-scrapi
Skill-Nummcxas-sim-eval
Stären
113
Forks
106
Matgeliwwert Fichieren
4
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum GoogleCloudPlatform op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Cxas Sim Eval an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/GoogleCloudPlatform/cxas-scrapi/tree/main/.agents/skills/cxas-sim-eval
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi.git /tmp/cxas-scrapi
mkdir -p .claude/skills
cp -r /tmp/cxas-scrapi/.agents/skills/cxas-sim-eval .claude/skills/cxas-sim-eval
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Cxas Sim Eval an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Cxas Sim Eval automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Cxas Sim Eval net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

CXAS Evaluation to Simulation Converter

This skill helps convert turn-by-turn CXAS golden evaluations into high-level, goal-oriented test cases for the SCRAPI SimulationEvals framework. It analyzes the agent's tools to enrich expectations with specific tool calls.


Steps

1. Check Environment

Ensure cxas_scrapi is installed as a python package. You can check this by running:

bash
python -c "import cxas_scrapi"

Ensure gcloud is authenticated properly:

bash
gcloud auth list

If needed, login with:

bash
gcloud auth login

2. Get App Name and Output Directory

[!IMPORTANT] You MUST ask the user for the full resource name of the app/agent (e.g., projects/.../locations/.../apps/...) and the base output directory before proceeding with any execution steps.

Ask the user for these values.

3. Fetch Evaluations

Fetch the list of evaluations using the CES API. Save each evaluation as a JSON file named after its display name under [output_dir]/golden_evals/.

4. Fetch Tool Schemas

Fetch the full schemas for all tools available in the app and save them under [output_dir]/tools/.

5. Fetch Agent Tools Configuration

Fetch the list of tools and toolsets used by the agent and save the configuration (e.g., to [output_dir]/agent_tools.json).

6. Convert Evaluations

Run the conversion script (convert_eval.py) to process the fetched evaluations and save the converted test cases under [output_dir]/sim_evals/.

Automation Scripts

Three scripts are available to automate the process:

1. Fetch Evaluations and Agent Config

scripts/fetch_app_data.py

Fetches evaluations and the list of tools used by the agent from the CES API.

Usage:

bash
python .agents/skills/cxas-sim-eval/scripts/fetch_app_data.py \
  --app-name "projects/.../locations/.../apps/..." \
  --output-dir /path/to/output_directory

2. Fetch Tool Schemas

scripts/fetch_tool_schemas.py

Fetches the full schemas for all tools available in the app.

Usage:

bash
python .agents/skills/cxas-sim-eval/scripts/fetch_tool_schemas.py \
  --app-name "projects/.../locations/.../apps/..." \
  --output-dir /path/to/output_directory

3. Convert Evaluations

scripts/convert_eval.py

Converts the fetched evaluations to simulation test cases, using the fetched tool schemas to infer expectations.

Usage:

bash
python .agents/skills/cxas-sim-eval/scripts/convert_eval.py \
  --output-dir /path/to/output_directory \
  --parallelism 5

4. Run Evaluations (Local or Platform Milestone Evals)

scripts/run_evals.py

Runs the simulation evaluations, logs raw results, and generates a combined HTML report.

Cognitive Diagnostics Analysis: If the agent has the intercept_and_score_reasoning tool enabled, this script will automatically extract and analyze the agent's internal monologue for failed evaluations. It detects issues like overthinking, hesitation, and backtracking. Furthermore, it correlates these diagnostics with the agent's instructions to generate actionable suggestions for improvement directly in the HTML report.

Usage (local execution):

bash
python .agents/skills/cxas-sim-eval/scripts/run_evals.py \
  --app-name "projects/.../locations/.../apps/..." \
  --output-dir /path/to/output_directory \
  --parallelism 5 \
  --start-index 0 \
  --end-index 10

Usage (CXAS 2.0 Platform Milestone execution via CLI or SDK):

bash
# Push converted sim_evals directly to the CES platform as Milestone evaluations
uv run cxas push-eval \
  --app-name "projects/.../locations/.../apps/..." \
  --file /path/to/output_directory/sim_evals/

# Run all scenario/milestone evaluations on the platform
uv run cxas run \
  --app-name "projects/.../locations/.../apps/..." \
  --eval-type scenarios \
  --run-count 3 \
  --wait

[!NOTE] Tool fakes (use_tool_fakes: true) are supported on platform Milestone evaluations via EvaluationConfig.tool_call_behaviour = FAKE. When executing via SimulationEvals.run_simulations(..., run_on_platform=True), text simulations with tool fakes run directly on the platform, while local-only features (audio_analysis, voice_config, audio_expectations, barge_in_after_ms, naturalness_metric) automatically route to local client simulation.

Interpreting Cognitive Diagnostics

When running evaluations with the intercept_and_score_reasoning tool enabled, the system extracts diagnostics to help you identify issues in agent reasoning.

Key Signals

  1. Overthinking (Verbosity)

    • Symptom: Internal monologue exceeds 350 or 600 characters.
    • Meaning: The agent is struggling to process complex or circular instructions.
    • Fix: Simplify instructions. Break down complex tasks into smaller, linear steps.
  2. Hedging

    • Symptom: Use of words like "might be", "guess", "unsure", "assume".
    • Meaning: The agent is uncertain about its next action, often due to missing edge case handling.
    • Fix: Add explicit instructions for the scenario the agent is unsure about.
  3. Backtracking

    • Symptom: Use of words like "wait", "actually", "on second thought".
    • Meaning: The agent is abandoning a plan mid-turn or correcting itself, indicating unclear triggers.
    • Fix: Clarify triggers and state transitions in instructions.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Cxas Sim Eval?

Converts CXAS golden evaluations to SCRAPI SimulationEvals test cases. Use when generating high-level, goal-oriented test cases from turn-by-turn evaluation JSONs, and when enriching test expectations with inferred tool calls.

Firwat Cxas Sim Eval op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Cxas Sim Eval besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Cxas Sim Eval an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/GoogleCloudPlatform/cxas-scrapi/tree/main/.agents/skills/cxas-sim-eval an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Cxas Sim Eval benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Cxas Sim Eval benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Cxas Sim Eval domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Cxas Sim Eval gratis?

Jo. De Skill gëtt vum GoogleCloudPlatform ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇