Skip to content

Commit e1c31ad

Browse files
google-genai-botcopybara-github
authored andcommitted
feat(interaction-api): Add grounding tool usage breakdown to Interaction Usage.
PiperOrigin-RevId: 907241831
1 parent 26975d0 commit e1c31ad

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/interactions/resources/interactions.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,11 @@ export interface Usage {
19981998
*/
19991999
cached_tokens_by_modality?: Array<Usage.CachedTokensByModality>;
20002000

2001+
/**
2002+
* Grounding tool count.
2003+
*/
2004+
grounding_tool_count?: Array<Usage.GroundingToolCount>;
2005+
20012006
/**
20022007
* A breakdown of input token usage by modality.
20032008
*/
@@ -2061,6 +2066,21 @@ export namespace Usage {
20612066
tokens?: number;
20622067
}
20632068

2069+
/**
2070+
* The number of grounding tool counts.
2071+
*/
2072+
export interface GroundingToolCount {
2073+
/**
2074+
* The number of grounding tool counts.
2075+
*/
2076+
count?: number;
2077+
2078+
/**
2079+
* The grounding tool type associated with the count.
2080+
*/
2081+
type?: 'google_search' | 'google_maps' | 'retrieval';
2082+
}
2083+
20642084
/**
20652085
* The token count for a single response modality.
20662086
*/

0 commit comments

Comments
 (0)