755
*/
756
export function toPromptFileVariableEntry(uri: URI, kind: PromptFileVariableKind, originLabel?: string, automaticallyAdded = false, toolReferences?: ChatRequestToolReferenceEntry[]): IPromptFileVariableEntry {
757
>
// `id` for all `prompt files` starts with the well-defined part that the copilot extension(or other chatbot) can rely on
chatVariableEntries.ts
758
>
return {
759
>
id: `${kind}__${uri.toString()}`,
760
>
name: `prompt:${basename(uri)}`,
761
>
value: uri,
762
>
kind: 'promptFile',
763
>
modelDescription: 'Prompt instructions file',
764
>
isRoot: kind !== PromptFileVariableKind.InstructionReference,
765
>
originLabel,
766
>
toolReferences,
767
>
automaticallyAdded
768
>
};
769
>
}
770
771
enum PromptTextVariableKind {