fix: harden workflow demo and evaluation tooling

This commit is contained in:
lda
2026-07-01 08:20:38 +07:00 Verified
parent 7bdfa3132d
commit 7e5f1c88da
29 changed files with 365 additions and 71 deletions
+7 -4
View File
@@ -16,10 +16,13 @@ if (-not (Test-Path $file)) {
$file = (Resolve-Path $file).Path
$resourcePath = [System.IO.Path]::GetDirectoryName($file)
$evaluationGenerator = Join-Path $PSScriptRoot "generate_agent_challenge_evaluation.py"
& uv run python $evaluationGenerator
if ($LASTEXITCODE -ne 0) {
throw "agent challenge evaluation generation failed with exit code $LASTEXITCODE"
$needsAgentResults = Select-String -LiteralPath $file -SimpleMatch "include-agent-challenge-results" -Quiet
if ($needsAgentResults) {
$evaluationGenerator = Join-Path $PSScriptRoot "generate_agent_challenge_evaluation.py"
& uv run python $evaluationGenerator
if ($LASTEXITCODE -ne 0) {
throw "agent challenge evaluation generation failed with exit code $LASTEXITCODE"
}
}
# name without extension