Class GoogleGenAiModalityTokenCount
java.lang.Object
org.springframework.ai.google.genai.metadata.GoogleGenAiModalityTokenCount
Represents token count information for a specific modality (text, image, audio, video).
- Since:
- 1.1.0
- Author:
- Dan Dobrin
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleGenAiModalityTokenCount(String modality, Integer tokenCount) Creates a new modality token count instance. -
Method Summary
-
Constructor Details
-
GoogleGenAiModalityTokenCount
-
-
Method Details
-
from
public static GoogleGenAiModalityTokenCount from(com.google.genai.types.ModalityTokenCount modalityTokenCount) Creates a GoogleGenAiModalityTokenCount from the SDK's ModalityTokenCount.- Parameters:
modalityTokenCount- the SDK modality token count- Returns:
- a new GoogleGenAiModalityTokenCount instance
-
getModality
-
getTokenCount
-
toString
-