mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Implements code execution command!
This allows the AI to execute code inside it's workspace folder.
This commit is contained in:
@@ -191,9 +191,9 @@ while True:
|
||||
|
||||
# Exectute command
|
||||
if command_name.lower() != "error":
|
||||
result = cmd.execute_command(command_name, arguments)
|
||||
result = f"Command {command_name} returned: {cmd.execute_command(command_name, arguments)}"
|
||||
else:
|
||||
result ="Error: " + arguments
|
||||
result =f"Command {command_name} threw the following error: " + arguments
|
||||
|
||||
# Check if there's a result from the command append it to the message history
|
||||
if result != None:
|
||||
|
||||
Reference in New Issue
Block a user