Skip to content

Commit 89552ba

Browse files
Annhiluccopybara-github
authored andcommitted
feat: Support dedicated TextAnnotationDelta for streaming tool responses
PiperOrigin-RevId: 891895587
1 parent 585c177 commit 89552ba

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/interactions/resources/interactions.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ export interface ContentDelta {
307307
| ContentDelta.GoogleSearchResult
308308
| ContentDelta.MCPServerToolResult
309309
| ContentDelta.FileSearchResult
310-
| ContentDelta.GoogleMapsResult;
310+
| ContentDelta.GoogleMapsResult
311+
| ContentDelta.TextAnnotation;
311312

312313
event_type: 'content.delta';
313314

@@ -325,11 +326,6 @@ export namespace ContentDelta {
325326
text: string;
326327

327328
type: 'text';
328-
329-
/**
330-
* Citation information for model-generated content.
331-
*/
332-
annotations?: Array<InteractionsAPI.Annotation>;
333329
}
334330

335331
export interface Image {
@@ -693,6 +689,15 @@ export namespace ContentDelta {
693689
*/
694690
signature?: string;
695691
}
692+
693+
export interface TextAnnotation {
694+
type: 'text_annotation';
695+
696+
/**
697+
* Citation information for model-generated content.
698+
*/
699+
annotations?: Array<InteractionsAPI.Annotation>;
700+
}
696701
}
697702

698703
export interface ContentStart {

0 commit comments

Comments
 (0)