@@ -274,25 +274,32 @@ declare module 'vscode' {
274274 variables : Record < string , ChatVariableValue [ ] > ;
275275 }
276276
277+ export interface ChatAgentResponseItemMetadata {
278+ title : string ;
279+ // annotations: any[]; // future OffsetbasedAnnotation and Annotation
280+ }
281+
277282 export interface ChatAgentResponseStream {
278283
279284 // RENDERED
280- markdown ( value : string | MarkdownString ) : ChatAgentResponseStream ;
281- text ( value : string ) : ChatAgentResponseStream ;
282- files ( value : ChatAgentFileTreeData ) : ChatAgentResponseStream ;
283- // TODO@jrieken is this sugar for markdown syntax? should we have more like codeblock, bulletlist etc?
284- anchor ( value : Uri | Location , attributes ?: { title ?: string } ) : ChatAgentResponseStream ;
285+
286+ text ( value : string , meta ?: ChatAgentResponseItemMetadata ) : ChatAgentResponseStream ;
287+
288+ markdown ( value : string | MarkdownString , meta ?: ChatAgentResponseItemMetadata ) : ChatAgentResponseStream ;
289+
290+ files ( value : ChatAgentFileTreeData , meta ?: ChatAgentResponseItemMetadata ) : ChatAgentResponseStream ;
291+
292+ anchor ( value : Uri | Location , meta ?: ChatAgentResponseItemMetadata ) : ChatAgentResponseStream ;
285293
286294 // META
295+
287296 // TODO@API this influences the rendering, it inserts new lines which is likely a bug
288297 progress ( value : string ) : ChatAgentResponseStream ;
289298
290299 // TODO@API support non-file uris, like http://example.com
300+ // TODO@API support mapped edits
291301 reference ( value : Uri | Location ) : ChatAgentResponseStream ;
292302
293- // TODO@API define support annotations
294- // annotation(value: string | MarkdownString | ChatXYZAnnotation, references?: string): ChatAgentResponseStream;
295-
296303 /**
297304 * @deprecated use above methods instread
298305 */
0 commit comments