iFurySt 8b9fc3df28 feat: add workflow to ghcr (#237) 2 سال پیش
..
action ea10809a96 fix file write observations (#225) 2 سال پیش
controller 93656f3bb3 add error handling for action running (#212) 2 سال پیش
llm eb4a261880 Create generic LLM client using LiteLLM (#114) 2 سال پیش
mock 9ab15b3287 add mock server (#214) 2 سال پیش
sandbox 8b9fc3df28 feat: add workflow to ghcr (#237) 2 سال پیش
server 413f5b1c0b standardize on LLM_MODEL (#244) 2 سال پیش
README.md dfa98b334e fix typo (#122) 2 سال پیش
agent.py eb4a261880 Create generic LLM client using LiteLLM (#114) 2 سال پیش
main.py eb4a261880 Create generic LLM client using LiteLLM (#114) 2 سال پیش
observation.py ea10809a96 fix file write observations (#225) 2 سال پیش
state.py 82f934d4cd New Agent, Action, Observation Abstraction with updated Controller (#105) 2 سال پیش

README.md

OpenDevin Shared Abstraction and Components

This is a Python package that contains all the shared abstraction (e.g., Agent) and components (e.g., sandbox, web browser, search API, selenium).

Sandbox component

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:

image

How to run

  1. 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 .
    
  2. 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
    
  3. 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.

  4. Run following cmd to start.

    PYTHONPATH=`pwd` python ./opendevin/main.py -d ./workspace -t "write a bash script that prints hello world"