Loading...
Loading...
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.
npx skill4agent add googlecloudplatform/cxas-scrapi cxas-sim-evalSimulationEvalscxas_scrapipython -c "import cxas_scrapi"gcloudgcloud auth listgcloud auth login[!IMPORTANT] You MUST ask the user for the full resource name of the app/agent (e.g.,) and the base output directory before proceeding with any execution steps.projects/.../locations/.../apps/...
[output_dir]/golden_evals/[output_dir]/tools/[output_dir]/agent_tools.jsonconvert_eval.py[output_dir]/sim_evals/scripts/fetch_app_data.pypython .agents/skills/cxas-sim-eval/scripts/fetch_app_data.py \
--app-name "projects/.../locations/.../apps/..." \
--output-dir /path/to/output_directoryscripts/fetch_tool_schemas.pypython .agents/skills/cxas-sim-eval/scripts/fetch_tool_schemas.py \
--app-name "projects/.../locations/.../apps/..." \
--output-dir /path/to/output_directoryscripts/convert_eval.pypython .agents/skills/cxas-sim-eval/scripts/convert_eval.py \
--output-dir /path/to/output_directory \
--parallelism 5scripts/run_evals.pyintercept_and_score_reasoningpython .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 10intercept_and_score_reasoning