Skip to content

Commit ccc8b33

Browse files
Copilotalexr00
andauthored
initial plan
Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/a73abfa2-1150-43fb-a262-a3a0d34a19c3 Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 06c78b4 commit ccc8b33

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -990,10 +990,6 @@ declare module 'vscode' {
990990
readonly toolReferences?: readonly ChatLanguageModelToolReference[];
991991
}
992992

993-
export interface ChatResultFeedback {
994-
readonly unhelpfulReason?: string;
995-
}
996-
997993
export namespace lm {
998994
export function fileIsIgnored(uri: Uri, token?: CancellationToken): Thenable<boolean>;
999995
}

src/@types/vscode.proposed.chatParticipantPrivate.d.ts

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ declare module 'vscode' {
5050
constructor(cell: TextDocument);
5151
}
5252

53-
export interface ChatRequestSessionGrouping {
54-
readonly id: string;
55-
readonly order: number;
56-
readonly kind?: string;
57-
}
58-
5953
export interface ChatRequest {
6054
/**
6155
* The id of the chat request. Used to identity an interaction with any of the chat surfaces.
@@ -122,11 +116,6 @@ declare module 'vscode' {
122116
*/
123117
readonly parentRequestId?: string;
124118

125-
/**
126-
* Optional metadata used to group related requests together in the UI.
127-
*/
128-
readonly sessionGrouping?: ChatRequestSessionGrouping;
129-
130119
/**
131120
* The permission level for tool auto-approval in this request.
132121
* - `'autoApprove'`: Auto-approve all tool calls and retry on errors.
@@ -199,10 +188,15 @@ declare module 'vscode' {
199188
*/
200189
readonly modelId?: string;
201190

191+
/**
192+
* The mode instructions that were active for this request, if any.
193+
*/
194+
readonly modeInstructions2?: ChatRequestModeInstructions;
195+
202196
/**
203197
* @hidden
204198
*/
205-
constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined, id: string | undefined, modelId: string | undefined);
199+
constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined, id: string | undefined, modelId: string | undefined, modeInstructions2: ChatRequestModeInstructions | undefined);
206200
}
207201

208202
export class ChatResponseTurn2 {
@@ -421,4 +415,17 @@ declare module 'vscode' {
421415
}
422416

423417
// #endregion
418+
419+
export interface LanguageModelToolInformation {
420+
/**
421+
* The full reference name of this tool as used in agent definition files.
422+
*
423+
* For MCP tools, this is the canonical name in the format `serverShortName/toolReferenceName`
424+
* (e.g., `github/search_issues`). This can be used to map between the tool names specified
425+
* in agent `.md` files and the tool's internal {@link LanguageModelToolInformation.name id}.
426+
*
427+
* This property is only set for MCP tools. For other tool types, it is `undefined`.
428+
*/
429+
readonly fullReferenceName?: string;
430+
}
424431
}

0 commit comments

Comments
 (0)