|
|
1 rok pred | |
|---|---|---|
| .. | ||
| action | 1 rok pred | |
| controller | 1 rok pred | |
| llm | 1 rok pred | |
| mock | 1 rok pred | |
| sandbox | 1 rok pred | |
| server | 1 rok pred | |
| README.md | 1 rok pred | |
| agent.py | 1 rok pred | |
| main.py | 1 rok pred | |
| observation.py | 1 rok pred | |
| state.py | 1 rok pred | |
This is a Python package that contains all the shared abstraction (e.g., Agent) and components (e.g., sandbox, web browser, search API, selenium).
Run the docker-based sandbox interactive:
mkdir workspace
python3 opendevin/sandbox/sandbox.py -d workspace
It will map ./workspace into the docker container with the folder permission correctly adjusted for current user.
Example screenshot:
Build the sandbox image local. If you want to use specific image tags, please also fix the variable in code, in code default image tag is latest.
docker build -f opendevin/sandbox/Dockerfile -t opendevin/sandbox:v0.1 .
Or you can pull the latest image here:
docker pull ghcr.io/opendevin/sandbox:v0.1
Set the OPENAI_API_KEY, please find more details here. Also, choose the model you want. Default is gpt-4-0125-preview
export OPENAI_API_KEY=xxxxxxx
Install the requirement package.
pip install -r requirements.txt
If you still meet problem like ModuleNotFoundError: No module named 'agenthub', try to add the opendevin root path into PATH env.
Run following cmd to start.
PYTHONPATH=`pwd` python ./opendevin/main.py -d ./workspace -t "write a bash script that prints hello world"