fix old references to langchains (#513)

This commit is contained in:
Robert Brennan 2024-04-01 13:33:20 -04:00 committed by GitHub
parent d97602d071
commit 511afa12fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -8,4 +8,4 @@ warn_redundant_casts = True
no_implicit_optional = True
strict_optional = True
exclude = agenthub/langchains_agent/regression
exclude = agenthub/monologue_agent/regression

View File

@ -1,3 +1,3 @@
exclude = [
"agenthub/langchains_agent/regression/",
"agenthub/monologue_agent/regression/",
]

View File

@ -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

View File

@ -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)