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.
Update commands.py
Andres Caicedo632d87c195ed
diff --git a/scripts/commands.py b/scripts/commands.pyindex 42fe1ebb57..7873c048d7 100644--- a/scripts/commands.py+++ b/scripts/commands.py@@ -1,7 +1,7 @@import browseimport jsonimport memory as mem-import datetime+from datetime import datetimeimport agent_manager as agentsimport speakfrom config import Config@@ -110,7 +110,7 @@ def execute_command(command_name, arguments):def get_datetime():"""Return the current date and time"""return "Current date and time: " + \- datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+ datetime.now().strftime("%Y-%m-%d %H:%M:%S")def google_search(query, num_results=8):@@ -122,6 +122,7 @@ def google_search(query, num_results=8):return json.dumps(search_results, ensure_ascii=False, indent=4)def google_official_search(query, num_results=8):+ """Return the results of a google search using the official Google API"""from googleapiclient.discovery import buildfrom googleapiclient.errors import HttpErrorimport json