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.
Refactor variable names and remove unnecessary blank lines in __main__.py
Merwane Hamadi21ccaf2ce892
diff --git a/autogpt/__main__.py b/autogpt/__main__.pyindex 29ccddbfc0..7fe6aec35e 100644--- a/autogpt/__main__.py+++ b/autogpt/__main__.py@@ -3,13 +3,10 @@ import loggingfrom colorama import Forefrom autogpt.agent.agent import Agentfrom autogpt.args import parse_arguments-from autogpt.config import Config, check_openai_api_keyfrom autogpt.logs import loggerfrom autogpt.memory import get_memory-from autogpt.prompt import construct_prompt-# Load environment variables from .env file@@ -21,13 +18,13 @@ def main() -> None:parse_arguments()logger.set_level(logging.DEBUG if cfg.debug_mode else logging.INFO)ai_name = ""- prompt = construct_prompt()+ master_prompt = construct_prompt()# print(prompt)# Initialize variablesfull_message_history = []next_action_count = 0# Make a constant:- user_input = (+ triggering_prompt = ("Determine which next command to use, and respond using the"" format specified above:")@@ -43,8 +40,8 @@ def main() -> None:memory=memory,full_message_history=full_message_history,next_action_count=next_action_count,- prompt=prompt,- user_input=user_input,+ master_prompt=master_prompt,+ triggering_prompt=triggering_prompt,)agent.start_interaction_loop()