get_file_long_context
Uses a graph to create a context string for a file.
Arguments
Name
Type
Description
Required
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
Type
Description
prompt array
A list of prompt friendly context strings containing the context for this file up to the specified depth.
Example
Last updated