find_files_from_info_in_file

Get an array of files from the codebase based on information found in a specified file.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file from which information is extracted.

find_info_in_file_prompt

prompt

The prompt used for finding information within the specified file.

find_files_from_info_prompt

prompt

The prompt used for finding files based on the information extracted from the specified file.

subpath

string

The subpath directory to search in for the files.

cached_file_paths

array

An optional cached array of file paths to avoid re-querying.

limit

number

Limit the amount of results returned.

Returns

TypeDescription

array

An array of file paths found based on the information extracted.

Example

- name: find_files_from_info_in_file
  arguments:
    path_to_file: <path-to-file>
    find_info_in_file_prompt: <find-info-in-file-prompt>
    find_files_from_info_prompt: <find-files-from-info-prompt>
    cached_file_paths: <cached-file-paths>
    subpath: <subpath>
  returns: <array-of-file-paths>

Last updated