Functions
Adds a single CachedTokensByModality to Builder.cachedTokensByModality.
Adds a single GroundingToolCount to Builder.groundingToolCount.
Adds a single InputTokensByModality to Builder.inputTokensByModality.
Adds a single OutputTokensByModality to Builder.outputTokensByModality.
Adds a single ToolUseTokensByModality to Builder.toolUseTokensByModality.
Sets Builder.cachedTokensByModality to an arbitrary JSON value.
A breakdown of cached token usage by modality.
Sets Builder.groundingToolCount to an arbitrary JSON value.
Grounding tool count.
Sets Builder.inputTokensByModality to an arbitrary JSON value.
A breakdown of input token usage by modality.
Sets Builder.outputTokensByModality to an arbitrary JSON value.
A breakdown of output token usage by modality.
Sets Builder.toolUseTokensByModality to an arbitrary JSON value.
A breakdown of tool-use token usage by modality.
Sets Builder.totalCachedTokens to an arbitrary JSON value.
Number of tokens in the cached part of the prompt (the cached content).
Sets Builder.totalInputTokens to an arbitrary JSON value.
Number of tokens in the prompt (context).
Sets Builder.totalOutputTokens to an arbitrary JSON value.
Total number of tokens across all the generated responses.
Sets Builder.totalThoughtTokens to an arbitrary JSON value.
Number of tokens of thoughts for thinking models.
Sets Builder.totalTokens to an arbitrary JSON value.
Total token count for the interaction request (prompt + responses + other internal tokens).
Sets Builder.totalToolUseTokens to an arbitrary JSON value.
Number of tokens present in tool-use prompt(s).