mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 11:54:30 +01:00
fix(autogpt/cli): Loop until non-empty task is provided by the user (#6995)
This commit is contained in:
committed by
GitHub
parent
fb97e15e4b
commit
ef35028ecb
@@ -256,11 +256,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(
|
||||
|
||||
Reference in New Issue
Block a user