Refactor variable names and remove unnecessary blank lines in __main__.py

This commit is contained in:
Merwane Hamadi
2023-04-16 14:16:48 -07:00
committed by Pi
parent 8f0d553e4e
commit 21ccaf2ce8

View File

@@ -3,13 +3,10 @@ import logging
from colorama import Fore
from autogpt.agent.agent import Agent
from autogpt.args import parse_arguments
from autogpt.config import Config, check_openai_api_key
from autogpt.logs import logger
from 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 variables
full_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()