Skip to content

πŸ™Œ OpenHands: AI-Driven Development

automatically get agent version for eval (#1844)

Xingyao Wange31f8b832207
diff --git a/evaluation/swe_bench/scripts/run_infer.sh b/evaluation/swe_bench/scripts/run_infer.sh
index 8863bcf07c..da4f2342b9 100755
--- a/evaluation/swe_bench/scripts/run_infer.sh
+++ b/evaluation/swe_bench/scripts/run_infer.sh
@@ -1,9 +1,13 @@
#!/bin/bash
AGENT=CodeActAgent
-AGENT_VERSION=v1.3
+AGENT_VERSION=v$(python3 -c "from agenthub.codeact_agent import CodeActAgent; print(CodeActAgent.VERSION)")
MODEL_CONFIG=$1
+echo "AGENT: $AGENT"
+echo "AGENT_VERSION: $AGENT_VERSION"
+echo "MODEL_CONFIG: $MODEL_CONFIG"
+
# You should add $MODEL_CONFIG in your `config.toml`
poetry run python3 evaluation/swe_bench/run_infer.py \