mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-04 14:54:32 +01:00
mini agi attempt
This commit is contained in:
27
agent/agbenchmark_run.py
Normal file
27
agent/agbenchmark_run.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import argparse
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
||||
def main(objective):
|
||||
# get the current directory
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# form the command
|
||||
command = (
|
||||
f"python {os.path.join(current_dir, 'mini-agi', 'miniagi.py')} {objective}"
|
||||
)
|
||||
|
||||
# run the command
|
||||
subprocess.run(command, shell=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Run miniagi.py with an objective.")
|
||||
parser.add_argument(
|
||||
"objective", type=str, help="The objective to pass to miniagi.py"
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
main(args.objective)
|
||||
1
agent/mini-agi
Submodule
1
agent/mini-agi
Submodule
Submodule agent/mini-agi added at d2add8f18c
Reference in New Issue
Block a user