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 TypeMethodDescriptionGoogleGenAiModalityTokenCount.from(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 TypeMethodDescriptionGoogleGenAiUsage.getCacheTokensDetails()Returns the list of modalities of the cached content in the request input.GoogleGenAiUsage.getCandidatesTokensDetails()Returns the list of modalities that were returned in the response.GoogleGenAiUsage.getPromptTokensDetails()Returns the list of modalities that were processed in the request input.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, Integer thoughtsTokenCount, Integer cachedContentTokenCount, Integer toolUsePromptTokenCount, List<GoogleGenAiModalityTokenCount> promptTokensDetails, List<GoogleGenAiModalityTokenCount> candidatesTokensDetails, List<GoogleGenAiModalityTokenCount> cacheTokensDetails, List<GoogleGenAiModalityTokenCount> toolUsePromptTokensDetails, GoogleGenAiTrafficType trafficType, com.google.genai.types.GenerateContentResponseUsageMetadata nativeUsage) Creates a new GoogleGenAiUsage instance with all extended metadata.