Uses of Class
com.google.genai.gaos.models.interactions.Usage
Packages that use Usage
-
Uses of Usage in com.google.genai.gaos.models.interactions
Methods in com.google.genai.gaos.models.interactions that return UsageModifier and TypeMethodDescriptionUsage.Builder.build()Usage.withCachedTokensByModality(List<ModalityTokens> cachedTokensByModality) A breakdown of cached token usage by modality.Usage.withGroundingToolCount(List<GroundingToolCount> groundingToolCount) Grounding tool count.Usage.withInputTokensByModality(List<ModalityTokens> inputTokensByModality) A breakdown of input token usage by modality.Usage.withOutputTokensByModality(List<ModalityTokens> outputTokensByModality) A breakdown of output token usage by modality.Usage.withToolUseTokensByModality(List<ModalityTokens> toolUseTokensByModality) A breakdown of tool-use token usage by modality.Usage.withTotalCachedTokens(Integer totalCachedTokens) Number of tokens in the cached part of the prompt (the cached content).Usage.withTotalInputTokens(Integer totalInputTokens) Number of tokens in the prompt (context).Usage.withTotalOutputTokens(Integer totalOutputTokens) Total number of tokens across all the generated responses.Usage.withTotalThoughtTokens(Integer totalThoughtTokens) Number of tokens of thoughts for thinking models.Usage.withTotalTokens(Integer totalTokens) Total token count for the interaction request (prompt + responses + other internal tokens).Usage.withTotalToolUseTokens(Integer totalToolUseTokens) Number of tokens present in tool-use prompt(s).Methods in com.google.genai.gaos.models.interactions that return types with arguments of type UsageModifier and TypeMethodDescriptionStepStop.stepUsage()Statistics on the interaction request's token usage.StepDeltaMetadata.totalUsage()Statistics on the interaction request's token usage.Interaction.usage()Statistics on the interaction request's token usage.InteractionSseEventInteraction.usage()Statistics on the interaction request's token usage.StepStop.usage()Statistics on the interaction request's token usage.Methods in com.google.genai.gaos.models.interactions with parameters of type UsageModifier and TypeMethodDescriptionStatistics on the interaction request's token usage.StepDeltaMetadata.Builder.totalUsage(Usage totalUsage) Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.StepStop.withStepUsage(Usage stepUsage) Statistics on the interaction request's token usage.StepDeltaMetadata.withTotalUsage(Usage totalUsage) Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.Statistics on the interaction request's token usage.Constructors in com.google.genai.gaos.models.interactions with parameters of type UsageModifierConstructorDescriptionInteraction(AgentOption agent, InteractionAgentConfig agentConfig, String created, InteractionEnvironment environment, String environmentId, List<Error> errors, GenerationConfig generationConfig, String id, InteractionsInput input, Map<String, String> labels, Model model, AudioContent outputAudio, ImageContent outputImage, String outputText, VideoContent outputVideo, String previousInteractionId, InteractionResponseFormat responseFormat, String responseMimeType, List<ResponseModality> responseModalities, List<SafetySetting> safetySettings, ServiceTier serviceTier, InteractionStatus status, List<Step> steps, String systemInstruction, List<Tool> tools, String updated, Usage usage, WebhookConfig webhookConfig) InteractionSseEventInteraction(String agent, String created, String id, String model, String object, ServiceTier serviceTier, InteractionSseEventInteractionStatus status, List<Step> steps, String updated, Usage usage) StepDeltaMetadata(Usage totalUsage)