π OpenHands: AI-Driven Development
Evaluation: Fix bug on python path on run.sh (#98)
zch-cce5a28cba2f04
diff --git a/evaluation/regression/README.md b/evaluation/regression/README.mdindex fb192f3c6a..36bca7663a 100644--- a/evaluation/regression/README.md+++ b/evaluation/regression/README.md@@ -16,3 +16,14 @@ echo "write a hello world script" >> ./agent/regression/cases/$name/task.txt# Single out your test case using the TEST_CASE environment variableTEST_CASE=$name ./agent/regression/run.sh```++To add agent to regreesion test:+```bash+add agent pair to directory_class_pairs variable in run.sh+key is the directory name in /agenthub and value is the class name+```++To run regresion test:+```bash+./run.sh and enter DEBUG, OPENAI_API_KEY and Model name in the prompt.+```\ No newline at end of filediff --git a/evaluation/regression/run.sh b/evaluation/regression/run.shindex 357611ee23..b97b347089 100755--- a/evaluation/regression/run.sh+++ b/evaluation/regression/run.sh@@ -29,6 +29,11 @@ elseMODEL="$model"fi+echo "Running with model: $MODEL"++# add python path+export PYTHONPATH="$PYTHONPATH:$SCRIPT_DIR/../../"+# hardcode pairs for directory to python class mappingdeclare -A directory_class_pairs=([langchains_agent]="LangchainsAgent"