Skip to content

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.

Gives feedback to AI if for some reason no command can be executed.

Torantulino63bfa7d89a65
diff --git a/AutonomousAI/main.py b/AutonomousAI/main.py
index 886e3f9730..a1ab577ad5 100644
--- a/AutonomousAI/main.py
+++ b/AutonomousAI/main.py
@@ -223,8 +223,10 @@ while True:
result = execute_command(command_name, arguments)
- # Check if there's a result append it to the message history
+ # Check if there's a result from the command append it to the message history
if result != None:
full_message_history.append(create_chat_message("system", result))
print("system: " + result)
-
+ else:
+ full_message_history.append(create_chat_message("system", "Unable to execute command"))
+ print("system: Unable to execute command")