Minimal Docker Sandbox with GPT-3.5 Execution Example (#48)

* minimal docker sandbox

* make container_image as an argument (fall back to ubuntu);
increase timeout to avoid return too early for long running commands;

* add a minimal working (imperfect) example

* fix typo

* change default container name

* attempt to fix "Bad file descriptor" error

* handle ctrl+D

* add Python gitignore

* push sandbox to shared dockerhub for ease of use

* move codeact example into research folder

* add README for opendevin

* change container image name to opendevin dockerhub

* move folder; change example to a more general agent

* update Message and Role

* update docker sandbox to support mounting folder and switch to user with correct permission

* make network as host

* handle erorrs when attrs are not set yet

* convert codeact agent into a compatible agent

* add workspace to gitignore

* make sure the agent interface adjustment works for langchain_agent
This commit is contained in:
Xingyao Wang
2024-03-21 21:54:56 +08:00
committed by GitHub
parent a722f5c0b1
commit 2de75d4782
12 changed files with 373 additions and 13 deletions

View File

@@ -1 +1,2 @@
from . import langchains_agent
from . import codeact_agent