Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix old references to langchains (#513)

Robert Brennan511afa12fe8a
diff --git a/dev_config/python/mypy.ini b/dev_config/python/mypy.ini
index cdbe39699a..a5fbc5305c 100644
--- a/dev_config/python/mypy.ini
+++ b/dev_config/python/mypy.ini
@@ -8,4 +8,4 @@ warn_redundant_casts = True
no_implicit_optional = True
strict_optional = True
-exclude = agenthub/langchains_agent/regression
\ No newline at end of file
+exclude = agenthub/monologue_agent/regression
\ No newline at end of file
diff --git a/dev_config/python/ruff.toml b/dev_config/python/ruff.toml
index c457587c9b..bceca9293a 100644
--- a/dev_config/python/ruff.toml
+++ b/dev_config/python/ruff.toml
@@ -1,3 +1,3 @@
exclude = [
- "agenthub/langchains_agent/regression/",
+ "agenthub/monologue_agent/regression/",
]
\ No newline at end of file
diff --git a/evaluation/regression/README.md b/evaluation/regression/README.md
index 116bff4d22..67484a70b3 100644
--- a/evaluation/regression/README.md
+++ b/evaluation/regression/README.md
@@ -29,7 +29,7 @@ cases/
β”œβ”€β”€ hello-world/
β”‚ β”œβ”€β”€ task.txt
β”‚ β”œβ”€β”€ outputs/
-β”‚ β”‚ β”œβ”€β”€ langchains_agent/
+β”‚ β”‚ β”œβ”€β”€ monologue_agent/
β”‚ β”‚ β”‚ └── workspace/
β”‚ β”‚ β”‚ β”œβ”€β”€ hello_world.sh
β”‚ β”‚ └── codeact_agent/
@@ -39,7 +39,7 @@ cases/
β”œβ”€β”€ create_web_app/
β”‚ β”œβ”€β”€ task.txt
β”‚ β”œβ”€β”€ outputs/
-β”‚ β”‚ β”œβ”€β”€ langchains_agent/
+β”‚ β”‚ β”œβ”€β”€ monologue_agent/
β”‚ β”‚ β”‚ └── workspace/
β”‚ β”‚ β”‚ β”œβ”€β”€ app.py
β”‚ β”‚ β”‚ β”œβ”€β”€ requirements.txt
diff --git a/evaluation/regression/conftest.py b/evaluation/regression/conftest.py
index 34971a915a..f784bee1c6 100644
--- a/evaluation/regression/conftest.py
+++ b/evaluation/regression/conftest.py
@@ -112,7 +112,7 @@ def run_test_case(test_cases_dir, workspace_dir, request):
else:
os.makedirs(os.path.join(agent_dir, 'workspace'))
agents_ref = {
- "langchains_agent":"LangchainsAgent",
+ "monologue_agent":"MonologueAgent",
"codeact_agent":"CodeActAgent"
}
process = subprocess.Popen(["python3", f"{SCRIPT_DIR}/../../opendevin/main.py", "-d", f"{os.path.join(agent_dir, 'workspace')}", "-c", f"{agents_ref[agent]}", "-t", f"{task}", "-m", "gpt-4-0125-preview"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)