@@ -149,7 +149,7 @@ declare module 'vscode' {
149149 constructor ( value : ChatResponseDiffEntry [ ] , title : string ) ;
150150 }
151151
152- export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatPrepareToolInvocationPart | ChatToolInvocationPart | ChatResponseMultiDiffPart ;
152+ export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatPrepareToolInvocationPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart ;
153153 export class ChatResponseWarningPart {
154154 value : MarkdownString ;
155155 constructor ( value : string | MarkdownString ) ;
@@ -161,6 +161,23 @@ declare module 'vscode' {
161161 constructor ( value : string , task ?: ( progress : Progress < ChatResponseWarningPart | ChatResponseReferencePart > ) => Thenable < string | void > ) ;
162162 }
163163
164+ /**
165+ * A specialized progress part for displaying thinking/reasoning steps.
166+ */
167+ export class ChatResponseThinkingProgressPart extends ChatResponseProgressPart {
168+ value : string ;
169+ id ?: string ;
170+ metadata ?: string ;
171+ task ?: ( progress : Progress < LanguageModelThinkingPart > ) => Thenable < string | void > ;
172+
173+ /**
174+ * Creates a new thinking progress part.
175+ * @param value An initial progress message
176+ * @param task A task that will emit thinking parts during its execution
177+ */
178+ constructor ( value : string , id ?: string , metadata ?: string , task ?: ( progress : Progress < LanguageModelThinkingPart > ) => Thenable < string | void > ) ;
179+ }
180+
164181 export class ChatResponseReferencePart2 {
165182 /**
166183 * The reference target.
@@ -256,6 +273,8 @@ declare module 'vscode' {
256273 */
257274 progress ( value : string , task ?: ( progress : Progress < ChatResponseWarningPart | ChatResponseReferencePart > ) => Thenable < string | void > ) : void ;
258275
276+ thinkingProgress ( value : string , id ?: string , metadata ?: string ) : void ;
277+
259278 textEdit ( target : Uri , edits : TextEdit | TextEdit [ ] ) : void ;
260279
261280 textEdit ( target : Uri , isDone : true ) : void ;
0 commit comments