Skip to content

Commit

Permalink
Loop until task is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
kcze committed Mar 9, 2024
1 parent d5aa8d3 commit c5accc6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions autogpts/autogpt/autogpt/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,14 @@ async def run_auto_gpt(
# Set up a new Agent #
######################
if not agent:
task = await clean_input(
config,
"Enter the task that you want AutoGPT to execute,"
" with as much detail as possible:",
)
task = ""
while task.strip() == "":
task = await clean_input(
config,
"Enter the task that you want AutoGPT to execute,"
" with as much detail as possible:",
)

base_ai_directives = AIDirectives.from_file(config.prompt_settings_file)

ai_profile, task_oriented_ai_directives = await generate_agent_profile_for_task(
Expand Down

0 comments on commit c5accc6

Please sign in to comment.