Enum Class GeminiMediaResolutionLevel
java.lang.Object
java.lang.Enum<GeminiMediaResolutionLevel>
dev.langchain4j.model.googleai.GeminiMediaResolutionLevel
- All Implemented Interfaces:
Serializable, Comparable<GeminiMediaResolutionLevel>, Constable
Represents the media resolution levels for controlling how the Gemini API
processes media inputs like images, videos, and PDF documents.
The resolution determines the maximum number of tokens allocated for media inputs, allowing balance between response quality and latency/cost.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHigher token count, providing more detail for the model to work with, at the expense of increased latency and cost.Lower token count, resulting in faster processing and lower cost, but with less detail.A balance between detail, cost, and latency.(Per part only) Highest token count, required for specific use cases such as computer use.Default setting. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeminiMediaResolutionLevelReturns the enum constant of this class with the specified name.static GeminiMediaResolutionLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEDIA_RESOLUTION_UNSPECIFIED
Default setting. Token count varies between model versions. -
MEDIA_RESOLUTION_LOW
Lower token count, resulting in faster processing and lower cost, but with less detail. -
MEDIA_RESOLUTION_MEDIUM
A balance between detail, cost, and latency. -
MEDIA_RESOLUTION_HIGH
Higher token count, providing more detail for the model to work with, at the expense of increased latency and cost. -
MEDIA_RESOLUTION_ULTRA_HIGH
(Per part only) Highest token count, required for specific use cases such as computer use.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-