Skip to main content
Version: 0.24.0

Function: sourcesPromptSection()

function sourcesPromptSection(projectDir, sourcesDir): string;

Defined in: extensions/sources/tools.ts:113

The "Sources" section appended to the system prompt whenever there's a sources folder, with or without a knowledge base: what the originals are and how they come and go. projectDir and sourcesDir give the folder's name as the model reads it.

Parameters​

ParameterType
projectDirstring
sourcesDirstring

Returns​

string