33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55
6- // version: 14
6+ // version: 15
77
88declare module 'vscode' {
99
@@ -116,10 +116,25 @@ declare module 'vscode' {
116116 */
117117 readonly parentRequestId ?: string ;
118118
119+ /**
120+ * The permission level for tool auto-approval in this request.
121+ * - `'autoApprove'`: Auto-approve all tool calls and retry on errors.
122+ * - `'autopilot'`: Everything autoApprove does plus continues until the task is done.
123+ */
124+ readonly permissionLevel ?: string ;
125+
119126 /**
120127 * Whether any hooks are enabled for this request.
121128 */
122129 readonly hasHooksEnabled : boolean ;
130+
131+ /**
132+ * When true, this request was initiated by the system (e.g. a terminal
133+ * command completion notification) rather than by the user typing a
134+ * message. Extensions can use this to render the prompt differently
135+ * and skip billing.
136+ */
137+ readonly isSystemInitiated ?: boolean ;
123138 }
124139
125140 export enum ChatRequestEditedFileEventKind {
@@ -176,10 +191,20 @@ declare module 'vscode' {
176191 */
177192 readonly editedFileEvents ?: ChatRequestEditedFileEvent [ ] ;
178193
194+ /**
195+ * The identifier of the language model that was used for this request, if known.
196+ */
197+ readonly modelId ?: string ;
198+
199+ /**
200+ * The mode instructions that were active for this request, if any.
201+ */
202+ readonly modeInstructions2 ?: ChatRequestModeInstructions ;
203+
179204 /**
180205 * @hidden
181206 */
182- constructor ( prompt : string , command : string | undefined , references : ChatPromptReference [ ] , participant : string , toolReferences : ChatLanguageModelToolReference [ ] , editedFileEvents : ChatRequestEditedFileEvent [ ] | undefined , id : string | undefined ) ;
207+ constructor ( prompt : string , command : string | undefined , references : ChatPromptReference [ ] , participant : string , toolReferences : ChatLanguageModelToolReference [ ] , editedFileEvents : ChatRequestEditedFileEvent [ ] | undefined , id : string | undefined , modelId : string | undefined , modeInstructions2 : ChatRequestModeInstructions | undefined ) ;
183208 }
184209
185210 export class ChatResponseTurn2 {
@@ -262,8 +287,6 @@ declare module 'vscode' {
262287
263288 export interface LanguageModelToolInvocationOptions < T > {
264289 chatRequestId ?: string ;
265- /** @deprecated Use {@link chatSessionResource} instead */
266- chatSessionId ?: string ;
267290 chatSessionResource ?: Uri ;
268291 chatInteractionId ?: string ;
269292 terminalCommand ?: string ;
@@ -289,8 +312,6 @@ declare module 'vscode' {
289312 */
290313 input : T ;
291314 chatRequestId ?: string ;
292- /** @deprecated Use {@link chatSessionResource} instead */
293- chatSessionId ?: string ;
294315 chatSessionResource ?: Uri ;
295316 chatInteractionId ?: string ;
296317 /**
@@ -392,7 +413,27 @@ declare module 'vscode' {
392413 * will immediately follow up with a new request in the same conversation.
393414 */
394415 readonly yieldRequested : boolean ;
416+
417+ /**
418+ * The resource URI identifying the chat session this context belongs to.
419+ * Available when the context is provided for title generation, summarization,
420+ * or other session-scoped operations. Extracted from the session's history entries.
421+ */
422+ readonly sessionResource ?: Uri ;
395423 }
396424
397425 // #endregion
426+
427+ export interface LanguageModelToolInformation {
428+ /**
429+ * The full reference name of this tool as used in agent definition files.
430+ *
431+ * For MCP tools, this is the canonical name in the format `serverShortName/toolReferenceName`
432+ * (e.g., `github/search_issues`). This can be used to map between the tool names specified
433+ * in agent `.md` files and the tool's internal {@link LanguageModelToolInformation.name id}.
434+ *
435+ * This property is only set for MCP tools. For other tool types, it is `undefined`.
436+ */
437+ readonly fullReferenceName ?: string ;
438+ }
398439}
0 commit comments