diff --git a/agenthub/README.md b/agenthub/README.md new file mode 100644 index 000000000000..ed8b2c9204a1 --- /dev/null +++ b/agenthub/README.md @@ -0,0 +1,6 @@ +# Agent Framework Research + +In this folder, there may exist multiple implementations of `Agent` that will be used by the + +For example, `research/langchain`, `research/metagpt`, `research/codeact`, etc. +Contributors from different backgrounds and interests can choose to contribute to any (or all!) of these directions. diff --git a/research/__init__.py b/agenthub/__init__.py similarity index 100% rename from research/__init__.py rename to agenthub/__init__.py diff --git a/research/langchains_agent/.dockerignore b/agenthub/langchains_agent/.dockerignore similarity index 100% rename from research/langchains_agent/.dockerignore rename to agenthub/langchains_agent/.dockerignore diff --git a/research/langchains_agent/Dockerfile b/agenthub/langchains_agent/Dockerfile similarity index 100% rename from research/langchains_agent/Dockerfile rename to agenthub/langchains_agent/Dockerfile diff --git a/research/langchains_agent/README.md b/agenthub/langchains_agent/README.md similarity index 75% rename from research/langchains_agent/README.md rename to agenthub/langchains_agent/README.md index 0ed349411d3b..94d177ff625e 100644 --- a/research/langchains_agent/README.md +++ b/agenthub/langchains_agent/README.md @@ -4,5 +4,5 @@ This is currently a standalone utility. It will need to be integrated into OpenD ## Usage ```bash # Run this in project root -./research/langchains_agent/build-and-run.sh "write a bash script that prints 'hello world'" +./agenthub/langchains_agent/build-and-run.sh "write a bash script that prints 'hello world'" ``` diff --git a/research/langchains_agent/TODO.md b/agenthub/langchains_agent/TODO.md similarity index 100% rename from research/langchains_agent/TODO.md rename to agenthub/langchains_agent/TODO.md diff --git a/research/langchains_agent/__init__.py b/agenthub/langchains_agent/__init__.py similarity index 97% rename from research/langchains_agent/__init__.py rename to agenthub/langchains_agent/__init__.py index cffb8d9c4d85..aa72d803517d 100644 --- a/research/langchains_agent/__init__.py +++ b/agenthub/langchains_agent/__init__.py @@ -3,8 +3,8 @@ from opendevin.agent import Agent, Message -from research.langchains_agent.utils.agent import Agent as LangchainsAgentImpl -from research.langchains_agent.utils.event import Event +from agenthub.langchains_agent.utils.agent import Agent as LangchainsAgentImpl +from agenthub.langchains_agent.utils.event import Event INITIAL_THOUGHTS = [ "I exist!", diff --git a/research/langchains_agent/build-and-run.sh b/agenthub/langchains_agent/build-and-run.sh similarity index 92% rename from research/langchains_agent/build-and-run.sh rename to agenthub/langchains_agent/build-and-run.sh index cb3280a10830..bf0058e09798 100755 --- a/research/langchains_agent/build-and-run.sh +++ b/agenthub/langchains_agent/build-and-run.sh @@ -4,7 +4,7 @@ set -eo pipefail rm -rf `pwd`/workspace mkdir -p `pwd`/workspace -pushd research/langchains_agent +pushd agenthub/langchains_agent docker build -t control-loop . popd docker run \ diff --git a/research/langchains_agent/regression/.gitignore b/agenthub/langchains_agent/regression/.gitignore similarity index 100% rename from research/langchains_agent/regression/.gitignore rename to agenthub/langchains_agent/regression/.gitignore diff --git a/research/langchains_agent/regression/README.md b/agenthub/langchains_agent/regression/README.md similarity index 100% rename from research/langchains_agent/regression/README.md rename to agenthub/langchains_agent/regression/README.md diff --git a/research/langchains_agent/regression/cases/client-server/logs.txt b/agenthub/langchains_agent/regression/cases/client-server/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/client-server/logs.txt rename to agenthub/langchains_agent/regression/cases/client-server/logs.txt diff --git a/research/langchains_agent/regression/cases/client-server/task.txt b/agenthub/langchains_agent/regression/cases/client-server/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/client-server/task.txt rename to agenthub/langchains_agent/regression/cases/client-server/task.txt diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/.env b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/.env similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/.env rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/.env diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/.gitignore b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/.gitignore similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/.gitignore rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/.gitignore diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/README.md b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/README.md similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/README.md rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/README.md diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/package-lock.json b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/package-lock.json similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/package-lock.json rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/package-lock.json diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/package.json b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/package.json similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/package.json rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/package.json diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/favicon.ico b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/favicon.ico similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/favicon.ico rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/favicon.ico diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/index.html b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/index.html similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/index.html rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/index.html diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/logo192.png b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/logo192.png similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/logo192.png rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/logo192.png diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/logo512.png b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/logo512.png similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/logo512.png rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/logo512.png diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/manifest.json b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/manifest.json similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/manifest.json rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/manifest.json diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/public/robots.txt b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/robots.txt similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/public/robots.txt rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/public/robots.txt diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/App.css b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.css similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/App.css rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.css diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/App.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/App.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.js diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/App.test.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.test.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/App.test.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/App.test.js diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/index.css b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/index.css similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/index.css rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/index.css diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/index.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/index.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/index.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/index.js diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/logo.svg b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/logo.svg similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/logo.svg rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/logo.svg diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/reportWebVitals.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/reportWebVitals.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/reportWebVitals.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/reportWebVitals.js diff --git a/research/langchains_agent/regression/cases/client-server/workspace/client/src/setupTests.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/setupTests.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/client/src/setupTests.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/client/src/setupTests.js diff --git a/research/langchains_agent/regression/cases/client-server/workspace/package-lock.json b/agenthub/langchains_agent/regression/cases/client-server/workspace/package-lock.json similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/package-lock.json rename to agenthub/langchains_agent/regression/cases/client-server/workspace/package-lock.json diff --git a/research/langchains_agent/regression/cases/client-server/workspace/package.json b/agenthub/langchains_agent/regression/cases/client-server/workspace/package.json similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/package.json rename to agenthub/langchains_agent/regression/cases/client-server/workspace/package.json diff --git a/research/langchains_agent/regression/cases/client-server/workspace/server.js b/agenthub/langchains_agent/regression/cases/client-server/workspace/server.js similarity index 100% rename from research/langchains_agent/regression/cases/client-server/workspace/server.js rename to agenthub/langchains_agent/regression/cases/client-server/workspace/server.js diff --git a/research/langchains_agent/regression/cases/express/logs.txt b/agenthub/langchains_agent/regression/cases/express/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/express/logs.txt rename to agenthub/langchains_agent/regression/cases/express/logs.txt diff --git a/research/langchains_agent/regression/cases/express/task.txt b/agenthub/langchains_agent/regression/cases/express/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/express/task.txt rename to agenthub/langchains_agent/regression/cases/express/task.txt diff --git a/research/langchains_agent/regression/cases/express/workspace/index.js b/agenthub/langchains_agent/regression/cases/express/workspace/index.js similarity index 100% rename from research/langchains_agent/regression/cases/express/workspace/index.js rename to agenthub/langchains_agent/regression/cases/express/workspace/index.js diff --git a/research/langchains_agent/regression/cases/express/workspace/package-lock.json b/agenthub/langchains_agent/regression/cases/express/workspace/package-lock.json similarity index 100% rename from research/langchains_agent/regression/cases/express/workspace/package-lock.json rename to agenthub/langchains_agent/regression/cases/express/workspace/package-lock.json diff --git a/research/langchains_agent/regression/cases/express/workspace/package.json b/agenthub/langchains_agent/regression/cases/express/workspace/package.json similarity index 100% rename from research/langchains_agent/regression/cases/express/workspace/package.json rename to agenthub/langchains_agent/regression/cases/express/workspace/package.json diff --git a/research/langchains_agent/regression/cases/hello-name/logs.txt b/agenthub/langchains_agent/regression/cases/hello-name/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/hello-name/logs.txt rename to agenthub/langchains_agent/regression/cases/hello-name/logs.txt diff --git a/research/langchains_agent/regression/cases/hello-name/start/hello_world.sh b/agenthub/langchains_agent/regression/cases/hello-name/start/hello_world.sh similarity index 100% rename from research/langchains_agent/regression/cases/hello-name/start/hello_world.sh rename to agenthub/langchains_agent/regression/cases/hello-name/start/hello_world.sh diff --git a/research/langchains_agent/regression/cases/hello-name/task.txt b/agenthub/langchains_agent/regression/cases/hello-name/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/hello-name/task.txt rename to agenthub/langchains_agent/regression/cases/hello-name/task.txt diff --git a/research/langchains_agent/regression/cases/hello-name/workspace/hello_world.sh b/agenthub/langchains_agent/regression/cases/hello-name/workspace/hello_world.sh similarity index 100% rename from research/langchains_agent/regression/cases/hello-name/workspace/hello_world.sh rename to agenthub/langchains_agent/regression/cases/hello-name/workspace/hello_world.sh diff --git a/research/langchains_agent/regression/cases/hello-world/logs.txt b/agenthub/langchains_agent/regression/cases/hello-world/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/hello-world/logs.txt rename to agenthub/langchains_agent/regression/cases/hello-world/logs.txt diff --git a/research/langchains_agent/regression/cases/hello-world/task.txt b/agenthub/langchains_agent/regression/cases/hello-world/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/hello-world/task.txt rename to agenthub/langchains_agent/regression/cases/hello-world/task.txt diff --git a/research/langchains_agent/regression/cases/hello-world/workspace/hello_world.sh b/agenthub/langchains_agent/regression/cases/hello-world/workspace/hello_world.sh similarity index 100% rename from research/langchains_agent/regression/cases/hello-world/workspace/hello_world.sh rename to agenthub/langchains_agent/regression/cases/hello-world/workspace/hello_world.sh diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/logs.txt b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/logs.txt rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/logs.txt diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/length.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/length.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/length.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/length.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/lowercase.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/lowercase.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/lowercase.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/lowercase.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/reverse.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/reverse.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/reverse.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/reverse.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/scramble.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/scramble.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/scramble.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/scramble.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/spongebob.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/spongebob.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/spongebob.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/spongebob.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/uppercase.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/uppercase.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/commands/uppercase.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/commands/uppercase.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/start/string_cli.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/string_cli.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/start/string_cli.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/start/string_cli.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/task.txt b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/task.txt rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/task.txt diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/cli.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/cli.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/cli.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/cli.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/index.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/index.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/index.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/index.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/length.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/lowercase.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/reverse.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/scramble.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/spongebob.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.js b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.js similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.js rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.js diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/commands/uppercase.py diff --git a/research/langchains_agent/regression/cases/node-cli-rewrite/workspace/string_cli.py b/agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/string_cli.py similarity index 100% rename from research/langchains_agent/regression/cases/node-cli-rewrite/workspace/string_cli.py rename to agenthub/langchains_agent/regression/cases/node-cli-rewrite/workspace/string_cli.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/logs.txt b/agenthub/langchains_agent/regression/cases/python-cli-help/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/logs.txt rename to agenthub/langchains_agent/regression/cases/python-cli-help/logs.txt diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/length.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/length.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/length.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/length.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/lowercase.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/lowercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/lowercase.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/lowercase.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/reverse.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/reverse.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/reverse.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/reverse.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/scramble.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/scramble.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/scramble.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/scramble.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/spongebob.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/spongebob.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/spongebob.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/spongebob.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/commands/uppercase.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/uppercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/commands/uppercase.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/commands/uppercase.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/start/string_cli.py b/agenthub/langchains_agent/regression/cases/python-cli-help/start/string_cli.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/start/string_cli.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/start/string_cli.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/task.txt b/agenthub/langchains_agent/regression/cases/python-cli-help/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/task.txt rename to agenthub/langchains_agent/regression/cases/python-cli-help/task.txt diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/length.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/length.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/length.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/length.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/lowercase.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/lowercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/lowercase.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/lowercase.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/reverse.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/reverse.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/reverse.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/reverse.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/scramble.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/scramble.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/scramble.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/scramble.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/spongebob.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/spongebob.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/spongebob.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/spongebob.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/commands/uppercase.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/uppercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/commands/uppercase.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/commands/uppercase.py diff --git a/research/langchains_agent/regression/cases/python-cli-help/workspace/string_cli.py b/agenthub/langchains_agent/regression/cases/python-cli-help/workspace/string_cli.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli-help/workspace/string_cli.py rename to agenthub/langchains_agent/regression/cases/python-cli-help/workspace/string_cli.py diff --git a/research/langchains_agent/regression/cases/python-cli/logs.txt b/agenthub/langchains_agent/regression/cases/python-cli/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/logs.txt rename to agenthub/langchains_agent/regression/cases/python-cli/logs.txt diff --git a/research/langchains_agent/regression/cases/python-cli/task.txt b/agenthub/langchains_agent/regression/cases/python-cli/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/task.txt rename to agenthub/langchains_agent/regression/cases/python-cli/task.txt diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/length.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/length.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/length.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/length.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/lowercase.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/lowercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/lowercase.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/lowercase.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/reverse.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/reverse.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/reverse.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/reverse.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/scramble.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/scramble.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/scramble.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/scramble.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/spongebob.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/spongebob.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/spongebob.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/spongebob.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/commands/uppercase.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/uppercase.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/commands/uppercase.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/commands/uppercase.py diff --git a/research/langchains_agent/regression/cases/python-cli/workspace/string_cli.py b/agenthub/langchains_agent/regression/cases/python-cli/workspace/string_cli.py similarity index 100% rename from research/langchains_agent/regression/cases/python-cli/workspace/string_cli.py rename to agenthub/langchains_agent/regression/cases/python-cli/workspace/string_cli.py diff --git a/research/langchains_agent/regression/cases/react-todo/logs.txt b/agenthub/langchains_agent/regression/cases/react-todo/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/logs.txt rename to agenthub/langchains_agent/regression/cases/react-todo/logs.txt diff --git a/research/langchains_agent/regression/cases/react-todo/task.txt b/agenthub/langchains_agent/regression/cases/react-todo/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/task.txt rename to agenthub/langchains_agent/regression/cases/react-todo/task.txt diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/.gitignore b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/.gitignore similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/.gitignore rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/.gitignore diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/README.md b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/README.md similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/README.md rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/README.md diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/package-lock.json b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/package-lock.json similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/package-lock.json rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/package-lock.json diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/package.json b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/package.json similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/package.json rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/package.json diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/favicon.ico b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/favicon.ico similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/favicon.ico rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/favicon.ico diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/index.html b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/index.html similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/index.html rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/index.html diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo192.png b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo192.png similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo192.png rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo192.png diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo512.png b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo512.png similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo512.png rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/logo512.png diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/manifest.json b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/manifest.json similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/manifest.json rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/manifest.json diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/robots.txt b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/robots.txt similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/robots.txt rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/public/robots.txt diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.css b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.css similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.css rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.css diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.js b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.js similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.js rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.js diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.test.js b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.test.js similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.test.js rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/App.test.js diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.css b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.css similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.css rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.css diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.js b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.js similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.js rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/index.js diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/logo.svg b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/logo.svg similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/logo.svg rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/logo.svg diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/reportWebVitals.js b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/reportWebVitals.js similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/reportWebVitals.js rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/reportWebVitals.js diff --git a/research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/setupTests.js b/agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/setupTests.js similarity index 100% rename from research/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/setupTests.js rename to agenthub/langchains_agent/regression/cases/react-todo/workspace/todo-app/src/setupTests.js diff --git a/research/langchains_agent/regression/cases/server-test/logs.txt b/agenthub/langchains_agent/regression/cases/server-test/logs.txt similarity index 100% rename from research/langchains_agent/regression/cases/server-test/logs.txt rename to agenthub/langchains_agent/regression/cases/server-test/logs.txt diff --git a/research/langchains_agent/regression/cases/server-test/start/server.py b/agenthub/langchains_agent/regression/cases/server-test/start/server.py similarity index 100% rename from research/langchains_agent/regression/cases/server-test/start/server.py rename to agenthub/langchains_agent/regression/cases/server-test/start/server.py diff --git a/research/langchains_agent/regression/cases/server-test/task.txt b/agenthub/langchains_agent/regression/cases/server-test/task.txt similarity index 100% rename from research/langchains_agent/regression/cases/server-test/task.txt rename to agenthub/langchains_agent/regression/cases/server-test/task.txt diff --git a/research/langchains_agent/regression/cases/server-test/workspace/README.md b/agenthub/langchains_agent/regression/cases/server-test/workspace/README.md similarity index 100% rename from research/langchains_agent/regression/cases/server-test/workspace/README.md rename to agenthub/langchains_agent/regression/cases/server-test/workspace/README.md diff --git a/research/langchains_agent/regression/cases/server-test/workspace/server.py b/agenthub/langchains_agent/regression/cases/server-test/workspace/server.py similarity index 100% rename from research/langchains_agent/regression/cases/server-test/workspace/server.py rename to agenthub/langchains_agent/regression/cases/server-test/workspace/server.py diff --git a/research/langchains_agent/regression/run.sh b/agenthub/langchains_agent/regression/run.sh similarity index 100% rename from research/langchains_agent/regression/run.sh rename to agenthub/langchains_agent/regression/run.sh diff --git a/research/langchains_agent/requirements.txt b/agenthub/langchains_agent/requirements.txt similarity index 100% rename from research/langchains_agent/requirements.txt rename to agenthub/langchains_agent/requirements.txt diff --git a/research/langchains_agent/utils/actions/__init__.py b/agenthub/langchains_agent/utils/actions/__init__.py similarity index 100% rename from research/langchains_agent/utils/actions/__init__.py rename to agenthub/langchains_agent/utils/actions/__init__.py diff --git a/research/langchains_agent/utils/actions/browse.py b/agenthub/langchains_agent/utils/actions/browse.py similarity index 100% rename from research/langchains_agent/utils/actions/browse.py rename to agenthub/langchains_agent/utils/actions/browse.py diff --git a/research/langchains_agent/utils/actions/kill.py b/agenthub/langchains_agent/utils/actions/kill.py similarity index 100% rename from research/langchains_agent/utils/actions/kill.py rename to agenthub/langchains_agent/utils/actions/kill.py diff --git a/research/langchains_agent/utils/actions/read.py b/agenthub/langchains_agent/utils/actions/read.py similarity index 100% rename from research/langchains_agent/utils/actions/read.py rename to agenthub/langchains_agent/utils/actions/read.py diff --git a/research/langchains_agent/utils/actions/run.py b/agenthub/langchains_agent/utils/actions/run.py similarity index 100% rename from research/langchains_agent/utils/actions/run.py rename to agenthub/langchains_agent/utils/actions/run.py diff --git a/research/langchains_agent/utils/actions/write.py b/agenthub/langchains_agent/utils/actions/write.py similarity index 100% rename from research/langchains_agent/utils/actions/write.py rename to agenthub/langchains_agent/utils/actions/write.py diff --git a/research/langchains_agent/utils/agent.py b/agenthub/langchains_agent/utils/agent.py similarity index 92% rename from research/langchains_agent/utils/agent.py rename to agenthub/langchains_agent/utils/agent.py index e975bf6554af..583120202c54 100644 --- a/research/langchains_agent/utils/agent.py +++ b/agenthub/langchains_agent/utils/agent.py @@ -1,9 +1,9 @@ import select -from research.langchains_agent.utils.monologue import Monologue -from research.langchains_agent.utils.memory import LongTermMemory -from research.langchains_agent.utils.event import Event -import research.langchains_agent.utils.llm as llm +from agenthub.langchains_agent.utils.monologue import Monologue +from agenthub.langchains_agent.utils.memory import LongTermMemory +from agenthub.langchains_agent.utils.event import Event +import agenthub.langchains_agent.utils.llm as llm MAX_OUTPUT_LENGTH = 5000 MAX_MONOLOGUE_LENGTH = 20000 diff --git a/research/langchains_agent/utils/event.py b/agenthub/langchains_agent/utils/event.py similarity index 95% rename from research/langchains_agent/utils/event.py rename to agenthub/langchains_agent/utils/event.py index cf67e7b2bbfe..df105fd36059 100644 --- a/research/langchains_agent/utils/event.py +++ b/agenthub/langchains_agent/utils/event.py @@ -1,6 +1,6 @@ import os import json -import research.langchains_agent.utils.actions as actions +import agenthub.langchains_agent.utils.actions as actions class Event: def __init__(self, action, args): diff --git a/research/langchains_agent/utils/json.py b/agenthub/langchains_agent/utils/json.py similarity index 100% rename from research/langchains_agent/utils/json.py rename to agenthub/langchains_agent/utils/json.py diff --git a/research/langchains_agent/utils/llm.py b/agenthub/langchains_agent/utils/llm.py similarity index 100% rename from research/langchains_agent/utils/llm.py rename to agenthub/langchains_agent/utils/llm.py diff --git a/research/langchains_agent/utils/memory.py b/agenthub/langchains_agent/utils/memory.py similarity index 100% rename from research/langchains_agent/utils/memory.py rename to agenthub/langchains_agent/utils/memory.py diff --git a/research/langchains_agent/utils/monologue.py b/agenthub/langchains_agent/utils/monologue.py similarity index 75% rename from research/langchains_agent/utils/monologue.py rename to agenthub/langchains_agent/utils/monologue.py index b6bfe620b4b3..18729b4a1711 100644 --- a/research/langchains_agent/utils/monologue.py +++ b/agenthub/langchains_agent/utils/monologue.py @@ -1,7 +1,7 @@ -import research.langchains_agent.utils.json as json -from research.langchains_agent.utils.event import Event +import agenthub.langchains_agent.utils.json as json +from agenthub.langchains_agent.utils.event import Event -import research.langchains_agent.utils.llm as llm +import agenthub.langchains_agent.utils.llm as llm class Monologue: def __init__(self): diff --git a/opendevin/main.py b/opendevin/main.py index 5ecc517e90e0..10c4dba75dd5 100644 --- a/opendevin/main.py +++ b/opendevin/main.py @@ -1,7 +1,7 @@ import os import argparse -import research # for the agent registry +import agenthub # for the agent registry from opendevin.agent import Agent if __name__ == "__main__":