refactor_file

Refactor a file based on provided instructions.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file that needs refactoring, relative to the project root.

refactor_prompt

prompt

Instructions on how to refactor the file.

Returns

TypeDescription

string

The path to the refactored file.

Example

- name: refactor_file
  arguments:
    path_to_file: <relative-path-to-file>
    refactor_prompt: <refactor-instructions>
  returns: <path-to-refactored-file>

Last updated