Skip to content

Commit

Permalink
rename research to agenthub
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Mar 20, 2024
1 parent 23308f6 commit e204086
Show file tree
Hide file tree
Showing 135 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions agenthub/README.md
Original file line number Diff line number Diff line change
@@ -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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
```
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion opendevin/main.py
Original file line number Diff line number Diff line change
@@ -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__":
Expand Down

0 comments on commit e204086

Please sign in to comment.