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.
feat(autogpt/cli): Display info if code execution is enabled (#6997)
Krzysztof Czerwinskie201f5786116
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.pyindex 59ea781a54..39524ee70a 100644--- a/autogpts/autogpt/autogpt/app/main.py+++ b/autogpts/autogpt/autogpt/app/main.py@@ -24,6 +24,10 @@ from autogpt.agent_factory.profile_generator import generate_agent_profile_for_tfrom autogpt.agent_manager import AgentManagerfrom autogpt.agents import AgentThoughts, CommandArgs, CommandNamefrom autogpt.agents.utils.exceptions import AgentTerminated, InvalidAgentResponseError+from autogpt.commands.execute_code import (+ is_docker_available,+ we_are_running_in_a_docker_container,+)from autogpt.commands.system import finishfrom autogpt.config import (AIDirectives,@@ -152,6 +156,14 @@ async def run_auto_gpt(print_attribute("Using Prompt Settings File", prompt_settings)if config.allow_downloads:print_attribute("Native Downloading", "ENABLED")+ if we_are_running_in_a_docker_container() or is_docker_available():+ print_attribute("Code Execution", "ENABLED")+ else:+ print_attribute(+ "Code Execution",+ "DISABLED (Docker unavailable)",+ title_color=Fore.YELLOW,+ )if install_plugin_deps:install_plugin_dependencies()