mini agi attempt

This commit is contained in:
Silen Naihin
2023-06-26 09:27:20 -04:00
parent 7604ae07bb
commit 4be22ae5ab
4 changed files with 55 additions and 32 deletions

27
agent/agbenchmark_run.py Normal file
View 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

Submodule agent/mini-agi added at d2add8f18c