diff --git a/pilot/helpers/agents/Developer.py b/pilot/helpers/agents/Developer.py index 6acae10..b8dd472 100644 --- a/pilot/helpers/agents/Developer.py +++ b/pilot/helpers/agents/Developer.py @@ -146,7 +146,7 @@ class Developer(Agent): return { "success": True } elif should_rerun_command == 'YES': cli_response, llm_response = execute_command_and_check_cli_response(test_command['command'], test_command['timeout'], convo) - print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! LLM response: ' + llm_response) + logger.info('After running command llm_response: ' + llm_response) if llm_response == 'NEEDS_DEBUGGING': print(red(f'Got incorrect CLI response:')) print(cli_response) @@ -308,6 +308,7 @@ class Developer(Agent): convo=iteration_convo, is_root_task=True) + logger.info('response: %s', response) user_feedback = response['user_input'] if 'user_input' in response else None if user_feedback == 'continue': return { "success": True, "user_input": user_feedback } diff --git a/pilot/prompts/dev_ops/ran_command.prompt b/pilot/prompts/dev_ops/ran_command.prompt index 5617503..f237532 100644 --- a/pilot/prompts/dev_ops/ran_command.prompt +++ b/pilot/prompts/dev_ops/ran_command.prompt @@ -3,4 +3,4 @@ {{ cli_response }} -If the command was successfully executed, respond with `DONE`. If it wasn't, respond with `NEEDS_DEBUGGING` and single line explanation. +If the command was successfully executed, respond with `DONE`. If it wasn't, respond with `NEEDS_DEBUGGING` diff --git a/pilot/prompts/development/define_user_review_goal.prompt b/pilot/prompts/development/define_user_review_goal.prompt index 3b32c75..4dfc013 100644 --- a/pilot/prompts/development/define_user_review_goal.prompt +++ b/pilot/prompts/development/define_user_review_goal.prompt @@ -1,4 +1,4 @@ -How can a human user test if this task was completed successfully? If you specify a command that needs to be run or give example, be very specific. You don't want the user to have to think anything through but rather that they jsut follow your instructions. +How can a human user test if this task was completed successfully? If you specify a command that needs to be run or give example, be very specific. You don't want the user to have to think anything through but rather that they just follow your instructions. !IMPORTANT! In case the task can be tested by making an API request, do not suggest how can a request be made with Postman but rather write a full cURL command that the user can just run.