get_file_long_context

Uses a graph to create a context string for a file.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file to get the context for.

depth

number

The depth of the context to get for the file. Defaults to 3.

graph_type

string

The type of graph to use. Defaults to 'prompt'.

Returns

TypeDescription

prompt array

A list of prompt friendly context strings containing the context for this file up to the specified depth.

Example

- name: get_file_context
  arguments:
    path_to_file: <file-path>
    depth: 3
  returns: <file-context>

Last updated