You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Arbitrary metadata for this result. Can be anything but must be JSON-stringifyable.
110
+
* Arbitrary metadata for this result. Can be anything, but must be JSON-stringifyable.
102
111
*/
103
112
readonlymetadata?: {readonly[key: string]: any};
104
113
}
@@ -123,7 +132,8 @@ declare module 'vscode' {
123
132
*/
124
133
exportinterfaceChatResultFeedback{
125
134
/**
126
-
* This instance of ChatResult has the same properties as the result returned from the participant callback, including `metadata`, but is not the same instance.
135
+
* The ChatResult that the user is providing feedback for.
136
+
* This instance has the same properties as the result returned from the participant callback, including `metadata`, but is not the same instance.
127
137
*/
128
138
readonlyresult: ChatResult;
129
139
@@ -158,8 +168,11 @@ declare module 'vscode' {
158
168
readonlyisSticky?: boolean;
159
169
}
160
170
171
+
/**
172
+
* A ChatCommandProvider returns {@link ChatCommands commands} that can be invoked on a chat participant using `/`. For example, `@participant /command`.
173
+
* These can be used as shortcuts to let the user explicitly invoke different functionalities provided by the participant.
174
+
*/
161
175
exportinterfaceChatCommandProvider{
162
-
163
176
/**
164
177
* Returns a list of commands that its participant is capable of handling. A command
165
178
* can be selected by the user and will then be passed to the {@link ChatRequestHandler handler}
@@ -175,7 +188,7 @@ declare module 'vscode' {
175
188
}
176
189
177
190
/**
178
-
* A followup question suggested by the model.
191
+
* A followup question suggested by the participant.
179
192
*/
180
193
exportinterfaceChatFollowup{
181
194
/**
@@ -184,7 +197,7 @@ declare module 'vscode' {
184
197
prompt: string;
185
198
186
199
/**
187
-
* A title to show the user, when it is different than the message.
200
+
* A title to show the user. The prompt will be shown by default, when this is unspecified.
188
201
*/
189
202
label?: string;
190
203
@@ -205,8 +218,8 @@ declare module 'vscode' {
205
218
*/
206
219
exportinterfaceChatFollowupProvider{
207
220
/**
208
-
*
209
-
* @param result The same instance of the result object that was returned by the chat participant, and it can be extended with arbitrary properties if needed.
221
+
* Provide followups for the given result.
222
+
* @param result This instance has the same properties as the result returned from the participant callback, including `metadata`, but is not the same instance.
* The ChatResponseStream is how a participant is able to return content to the chat view. It provides several methods for streaming different types of content
363
+
* which will be rendered in an appropriate way in the chat view. A participant can use the helper method for the type of content it wants to return, or it
364
+
* can instantiate a {@link ChatResponsePart} and use the generic {@link ChatResponseStream.push} method to return it.
365
+
*/
347
366
exportinterfaceChatResponseStream{
348
-
349
367
/**
350
368
* Push a markdown part to this stream. Short-hand for
351
369
* `push(new ChatResponseMarkdownPart(value))`.
@@ -359,6 +377,7 @@ declare module 'vscode' {
359
377
/**
360
378
* Push an anchor part to this stream. Short-hand for
0 commit comments