These files demonstrate how OpenDevin currently handles certain scenarios.
To add a new regression case:
name="hello-script"
# The start directory contains the initial state of the project the agent will work on
# Add any files you'd like here.
mkdir -p ./agent/regression/cases/$name/start
# task.txt contains the task to be accomplished
echo "write a hello world script" >> ./agent/regression/cases/$name/task.txt
# Single out your test case using the TEST_CASE environment variable
TEST_CASE=$name ./agent/regression/run.sh
To add agent to regreesion test:
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:
./run.sh and enter DEBUG, OPENAI_API_KEY and Model name in the prompt.