Download testing/agent_evaluation/scripts/run-export-example from yuhanqin/ut-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/scripts/run-export-example
- Command line
-
hf download hf://datasets/yuhanqin/ut-evaluation/testing/agent_evaluation/scripts/run-export-example
-
curl -L -o run-export-example https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/scripts/run-export-example
1.94 kB
| if [[ "${BASH_SOURCE[0]}" != "$0" ]]; then | |
| echo "Execute this script directly; do not source it." >&2 | |
| return 2 | |
| fi | |
| set -euo pipefail | |
| # Ready-to-run offline export evaluation example. | |
| # TASK_WORKSPACE and SESSION_ID are optional. The native export's historical | |
| # info.directory is deliberately never used as an implicit workspace. | |
| WORKTREE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| REPO_ROOT="${REPO_ROOT:-$(cd "$WORKTREE_ROOT/.." && pwd)}" | |
| ENV_FILE="${ENV_FILE:-}" | |
| SKILL="${SKILL:-$REPO_ROOT/data/veritas-ut-testplan-gen}" | |
| DATASET="${DATASET:-$WORKTREE_ROOT/agent_evaluation/dataset_bundles/veritas-ut-testplan-gen/v1}" | |
| EVALUATION_PROFILE="${EVALUATION_PROFILE:-$WORKTREE_ROOT/agent_evaluation/evaluation_profiles/veritas-ut-testplan-gen.yaml}" | |
| CASE_ID="${CASE_ID:-V_PosSharpDet}" | |
| EXPORT_JSON="${EXPORT_JSON:?Set EXPORT_JSON to an OpenCode export from a natively traced session}" | |
| TRACE_PROJECT="${TRACE_PROJECT:-subject-opencode}" | |
| BACKEND_ENDPOINT="${BACKEND_ENDPOINT:-http://127.0.0.1:6006}" | |
| ARTIFACTS="${ARTIFACTS:-$WORKTREE_ROOT/agent_evaluation/workspace/artifacts}" | |
| DATABASE="${DATABASE:-$WORKTREE_ROOT/agent_evaluation/workspace/native/evaluation.sqlite}" | |
| TASK_WORKSPACE="${TASK_WORKSPACE:-}" | |
| SESSION_ID="${SESSION_ID:-}" | |
| optional_args=(--no-evolve) | |
| if [[ -n "$ENV_FILE" ]]; then | |
| optional_args+=(--env-file "$ENV_FILE") | |
| fi | |
| if [[ -n "$TASK_WORKSPACE" ]]; then | |
| optional_args+=(--task-workspace "$TASK_WORKSPACE") | |
| fi | |
| if [[ -n "$SESSION_ID" ]]; then | |
| optional_args+=(--session-id "$SESSION_ID") | |
| fi | |
| exec "$WORKTREE_ROOT/agent_evaluation/scripts/eval-cli" evaluate-export \ | |
| --skill "$SKILL" \ | |
| --dataset "$DATASET" \ | |
| --evaluation-profile "$EVALUATION_PROFILE" \ | |
| --case-id "$CASE_ID" \ | |
| --export-json "$EXPORT_JSON" \ | |
| --trace-project "$TRACE_PROJECT" \ | |
| --artifacts "$ARTIFACTS" \ | |
| --backend-endpoint "$BACKEND_ENDPOINT" \ | |
| --database "$DATABASE" \ | |
| "${optional_args[@]}" "$@" | |