edit_file_with_context_using_assistant

Edit a file with context provided by an AI assistant.

Arguments

Name
Type
Description
Required

path_to_file

string

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

find_info_in_file_prompt

prompt

Instructions for finding information within the file.

find_files_from_info_prompt

prompt

Instructions for finding related context files based on information found.

find_context_in_file_prompt

prompt

Instructions for finding context within each related file.

edit_prompt

prompt

Instructions on how to edit the file using the provided context.

Returns

Type
Description

prompt

Paths to the edited files.

Example

- name: edit_file_with_context_using_assistant
  arguments:
    path_to_file: <relative-path-to-file>
    find_info_in_file_prompt: <instructions-for-finding-info>
    find_files_from_info_prompt: <instructions-for-finding-related-files>
    find_context_in_file_prompt: <instructions-for-finding-context>
    edit_prompt: <edit-instructions>
  returns: [edited-file-path]

Last updated