chunkText()
function is used to chunk large text into smaller, more manageable pieces. This functionality
is useful when editing large text or source code files (i.e. 1k+ lines of code).
This function will attempt to chunk code via natural breaks (e.g., functions, code blocks, etc) as long
as the chunk limit is not exceeded. The minimum code that can be chunked is the currently visible lines in the editor
regardless of the presence of natural breaks.
viewingCode
(required): The code or text to be chunkedlimit
(optional): The maximum number of lines or other units to include in the chunk. Starts from currently visible lines in the editor. Appends/removes text equally from the top and bottom of the chunk.
limitType
(optional): The type of limit, currently supporting “LINES”
chunkText()
function, provide the necessary parameters in your prompt. For example: