diff --git a/pilot/const/function_calls.py b/pilot/const/function_calls.py index b7e7a4c507..dc94525a86 100644 --- a/pilot/const/function_calls.py +++ b/pilot/const/function_calls.py @@ -109,34 +109,6 @@ def step_save_file_definition(): } -def step_delete_file_definition(): - return { - "type": "object", - "properties": { - "type": { - "const": "delete_file", - "description": dev_step_type_description() - }, - "delete_file": { - "type": "object", - "description": "A file that should be deleted. This should only be used for existing files that should get removed from the project.", - "properties": { - "name": { - "type": "string", - "description": "Name of the existing file that needs to be deleted." - }, - "path": { - "type": "string", - "description": "Full path of the file with the file name that needs to be deleted." - } - }, - "required": ["name", "path"] - } - }, - "required": ["type", "delete_file"] - } - - def step_human_intervention_definition(): return { "type": "object", @@ -303,7 +275,6 @@ IMPLEMENT_TASK = { "oneOf": [ step_command_definition(), step_save_file_definition(), - step_delete_file_definition(), step_human_intervention_definition(), ] } diff --git a/pilot/prompts/components/steps_list.prompt b/pilot/prompts/components/steps_list.prompt index cbbdc1537e..36b76a1ac0 100644 --- a/pilot/prompts/components/steps_list.prompt +++ b/pilot/prompts/components/steps_list.prompt @@ -2,7 +2,6 @@ The current task has been split into multiple steps, and each step is one of the following: * `command` - command to run * `save_file` - create or update a file -* `delete_file` - delete a file that's no longer needed * `human_intervention` - if the human needs to do something {% if step_index > 0 %}Here is the list of steps that have been executed: diff --git a/pilot/prompts/development/parse_task.prompt b/pilot/prompts/development/parse_task.prompt index e3c0ea543a..1490ed9807 100644 --- a/pilot/prompts/development/parse_task.prompt +++ b/pilot/prompts/development/parse_task.prompt @@ -4,7 +4,6 @@ Each step can be either: * `command` - command to run (must be able to run on a {{ os }} machine, assume current working directory is project root folder) * `save_file` - create or update ONE file -* `delete_file` - delete a file that is no longer used * `human_intervention` - if you need the human to do something, use this type of step and explain in details what you want the human to do. NEVER use `human_intervention` for testing, as testing will be done separately by a dedicated QA after all the steps are done. **IMPORTANT**: In `code_change_description` field of `save_file` step, you must provide empty string. If multiple changes are required for same file, you must provide single `save_file` step for each file. @@ -30,13 +29,6 @@ Examples: "code_change_description": "", }, }, - { - "type": "delete_file", - "delete_file": { - "name": "some_old_unused_file.js", - "path": "some/path/to/some_old_unused_file.js", - } - } { "type": "command", "command": {