Enum Class GeminiMediaResolutionLevel

java.lang.Object
java.lang.Enum<GeminiMediaResolutionLevel>
dev.langchain4j.model.googleai.GeminiMediaResolutionLevel
All Implemented Interfaces:
Serializable, Comparable<GeminiMediaResolutionLevel>, Constable

public enum GeminiMediaResolutionLevel extends Enum<GeminiMediaResolutionLevel>
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:
  • Enum Constant Details

    • MEDIA_RESOLUTION_UNSPECIFIED

      public static final GeminiMediaResolutionLevel MEDIA_RESOLUTION_UNSPECIFIED
      Default setting. Token count varies between model versions.
    • MEDIA_RESOLUTION_LOW

      public static final GeminiMediaResolutionLevel MEDIA_RESOLUTION_LOW
      Lower token count, resulting in faster processing and lower cost, but with less detail.
    • MEDIA_RESOLUTION_MEDIUM

      public static final GeminiMediaResolutionLevel MEDIA_RESOLUTION_MEDIUM
      A balance between detail, cost, and latency.
    • MEDIA_RESOLUTION_HIGH

      public static final GeminiMediaResolutionLevel 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

      public static final GeminiMediaResolutionLevel MEDIA_RESOLUTION_ULTRA_HIGH
      (Per part only) Highest token count, required for specific use cases such as computer use.
  • Method Details

    • values

      public static GeminiMediaResolutionLevel[] 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

      public static GeminiMediaResolutionLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null