diff --git a/src/base/jsonTypes.ts b/src/base/jsonTypes.ts index d1b7ea7..dfabac7 100644 --- a/src/base/jsonTypes.ts +++ b/src/base/jsonTypes.ts @@ -55,7 +55,13 @@ export type UriOrLocationJSON = UriComponents | { uri: UriComponents; range: Ran export interface PromptReferenceJSON { anchor: UriOrLocationJSON | { variableName: string; value?: UriOrLocationJSON }; iconPath?: UriComponents | { id: string } | { light: UriComponents; dark: UriComponents }; - options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } }; + options?: { + status?: { description: string; kind: ChatResponseReferencePartStatusKind }; + /** + * If true, the reference can be seen by tooling but should not be shown to the user. + */ + internal?: boolean; + }; } export interface PromptElementJSON { diff --git a/src/base/results.ts b/src/base/results.ts index e0b014c..29b41cc 100644 --- a/src/base/results.ts +++ b/src/base/results.ts @@ -53,6 +53,7 @@ export class PromptReference { readonly iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }, readonly options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind }; + internal?: boolean; } ) {}