AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Fix merge conflicts
Bernhard Mueller64da02bf4a8f
diff --cc scripts/commands.pyindex 187ad6c4b3,ba5383957a..a6f956f884--- a/scripts/commands.py+++ b/scripts/commands.py@@@ -7,8 -7,9 +7,9 @@@ import speafrom config import Configimport ai_functions as aifrom file_operations import read_file, write_to_file, append_to_file, delete_file, search_files-from execute_code import execute_python_file+from execute_code import execute_python_file, exec_shellfrom json_parser import fix_and_parse_json+ from image_gen import generate_imagefrom duckduckgo_search import ddgfrom googleapiclient.discovery import buildfrom googleapiclient.errors import HttpError@@@ -102,8 -104,8 +104,10 @@@ def execute_command(command_name, argumreturn ai.write_tests(arguments["code"], arguments.get("focus"))elif command_name == "execute_python_file": # Add this commandreturn execute_python_file(arguments["file"])+ elif command_name == "exec_shell": # Add this command+ return exec_shell(arguments["command_line"])+ elif command_name == "generate_image":+ return generate_image(arguments["prompt"])elif command_name == "task_complete":shutdown()else:diff --cc scripts/data/prompt.txtindex 5b139586ed,77a449de52..d6289b6c0b--- a/scripts/data/prompt.txt+++ b/scripts/data/prompt.txt@@@ -22,8 -22,8 +22,9 @@@ COMMANDS16. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"17. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"18. Execute Python File: "execute_python_file", args: "file": "<file>"-19. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"-20. Generate Image: "generate_image", args: "prompt": "<prompt>"+19. Execute Shell Command: "exec_shell", args: "command_line": "<command_line>". Remember only to use commands that terminate, interactive tools like vim are not supported!+20. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"++21. Generate Image: "generate_image", args: "prompt": "<prompt>"RESOURCES: