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.

Improve command result printing to console

Reinier van der Leer1f3db55ee89c
diff --git a/autogpt/app/main.py b/autogpt/app/main.py
index 10fd8fd8bf..036c7cd7c6 100644
--- a/autogpt/app/main.py
+++ b/autogpt/app/main.py
@@ -338,10 +338,7 @@ def run_interaction_loop(
result = agent.execute(command_name, command_args, user_input)
if result.status == "success":
- logger.info(
- str(result.results),
- extra={"title": "SYSTEM:", "title_color": Fore.YELLOW},
- )
+ logger.info(result, extra={"title": "SYSTEM:", "title_color": Fore.YELLOW})
elif result.status == "error":
logger.warn(
f"Command {command_name} returned an error: {result.error or result.reason}"