Uses of Class
org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Packages that use GoogleGenAiModalityTokenCount
-
Uses of GoogleGenAiModalityTokenCount in org.springframework.ai.google.genai.metadata
Methods in org.springframework.ai.google.genai.metadata that return GoogleGenAiModalityTokenCountModifier and TypeMethodDescriptionstatic @Nullable GoogleGenAiModalityTokenCountGoogleGenAiModalityTokenCount.from(@Nullable com.google.genai.types.ModalityTokenCount modalityTokenCount) Creates a GoogleGenAiModalityTokenCount from the SDK's ModalityTokenCount.Methods in org.springframework.ai.google.genai.metadata that return types with arguments of type GoogleGenAiModalityTokenCountModifier and TypeMethodDescription@Nullable List<GoogleGenAiModalityTokenCount>GoogleGenAiUsage.getCacheTokensDetails()Returns the list of modalities of the cached content in the request input.@Nullable List<GoogleGenAiModalityTokenCount>GoogleGenAiUsage.getCandidatesTokensDetails()Returns the list of modalities that were returned in the response.@Nullable List<GoogleGenAiModalityTokenCount>GoogleGenAiUsage.getPromptTokensDetails()Returns the list of modalities that were processed in the request input.@Nullable List<GoogleGenAiModalityTokenCount>GoogleGenAiUsage.getToolUsePromptTokensDetails()Returns the list of modalities that were processed for tool-use request inputs.Constructor parameters in org.springframework.ai.google.genai.metadata with type arguments of type GoogleGenAiModalityTokenCountModifierConstructorDescriptionGoogleGenAiUsage(Integer promptTokens, Integer completionTokens, Integer totalTokens, @Nullable Integer thoughtsTokenCount, @Nullable Integer cachedContentTokenCount, @Nullable Integer toolUsePromptTokenCount, @Nullable List<GoogleGenAiModalityTokenCount> promptTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> candidatesTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> cacheTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> toolUsePromptTokensDetails, @Nullable GoogleGenAiTrafficType trafficType, @Nullable com.google.genai.types.GenerateContentResponseUsageMetadata nativeUsage) Creates a new GoogleGenAiUsage instance with all extended metadata.