find_file

Finds one file in the codebase based on instructions.

Arguments

NameTypeDescriptionRequired

find_file_prompt

string

The instructions used to find the file.

subpath

string

Have the assistant only look in a specific subpath that you already know.

cached_file_path

string

If provided, this will be used instead of querying the codebase. Good for debugging.

Returns

TypeDescription

string

Path to the found file or None if not found.

Example

- name: find_file
  arguments:
    find_file_prompt: <instructions-to-find-file>
    cached_file_path: <optional-cached-path>
    subpath: <subpath>
  returns: <path-to-found-file-or-None>

Last updated