From 4ecb70c5e3e2fbf63780ba983cc1e96eea251541 Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Tue, 11 Jul 2023 12:11:24 -0700 Subject: [PATCH] Fix Auto-GPT integration by adding python module as entrypoint (#86) Co-authored-by: Silen Naihin --- agbenchmark/agent_interface.py | 3 +-- agbenchmark/config.json | 2 +- agent/Auto-GPT | 2 +- agent/SuperAGI | 2 +- agent/gpt-engineer | 2 +- agent/mini-agi | 2 +- agent/smol-developer | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/agbenchmark/agent_interface.py b/agbenchmark/agent_interface.py index 713451f0136..c737f307941 100644 --- a/agbenchmark/agent_interface.py +++ b/agbenchmark/agent_interface.py @@ -32,8 +32,7 @@ def run_agent( print( f"Running Python function '{config['entry_path']}' with timeout {timeout}" ) - - command = [sys.executable, config["entry_path"], str(task)] + command = [sys.executable, "-m", config["entry_path"], str(task)] process = subprocess.Popen( command, stdout=subprocess.PIPE, diff --git a/agbenchmark/config.json b/agbenchmark/config.json index 9dd8b16abc1..af83029ef9f 100644 --- a/agbenchmark/config.json +++ b/agbenchmark/config.json @@ -1,5 +1,5 @@ { "workspace": "${os.path.join(Path.home(), 'miniagi')}", - "entry_path": "agbenchmark/benchmarks.py", + "entry_path": "agbenchmark.benchmarks", "cutoff": 60 } diff --git a/agent/Auto-GPT b/agent/Auto-GPT index ade8e6f8142..e5fbe4313e0 160000 --- a/agent/Auto-GPT +++ b/agent/Auto-GPT @@ -1 +1 @@ -Subproject commit ade8e6f8142a937160596a987ab96808b583f9e3 +Subproject commit e5fbe4313e0ebf7f75514a181a5d2044a7babd26 diff --git a/agent/SuperAGI b/agent/SuperAGI index a28224d8257..9280512910c 160000 --- a/agent/SuperAGI +++ b/agent/SuperAGI @@ -1 +1 @@ -Subproject commit a28224d82572b598ccee1057086fabaf33e1aaa9 +Subproject commit 9280512910c74bc33333e2ce7c48e47021227529 diff --git a/agent/gpt-engineer b/agent/gpt-engineer index 538bcba6efb..42400fd6797 160000 --- a/agent/gpt-engineer +++ b/agent/gpt-engineer @@ -1 +1 @@ -Subproject commit 538bcba6efbb7cda7f6a355a8c8420bbbdb52f25 +Subproject commit 42400fd67972278e454621e7abf450a4f899a44a diff --git a/agent/mini-agi b/agent/mini-agi index ad2b345050e..6a1d08880c6 160000 --- a/agent/mini-agi +++ b/agent/mini-agi @@ -1 +1 @@ -Subproject commit ad2b345050e07efb7ad0bde68c93bc2b4e2d7a92 +Subproject commit 6a1d08880c65fe3e5831243c1e1ea19acf85516c diff --git a/agent/smol-developer b/agent/smol-developer index 150981f77f1..a0e9f4f39e2 160000 --- a/agent/smol-developer +++ b/agent/smol-developer @@ -1 +1 @@ -Subproject commit 150981f77f19777bf5aa76cb3a74869e4a8a8a05 +Subproject commit a0e9f4f39e26a56b13a364be09fc58d2d85150ea