Record Class Config.GenerationConfig

java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Config.GenerationConfig
Record Components:
temperature - Controls randomness in generation.
topP - The maximum cumulative probability of tokens to consider when sampling.
seed - Seed for random number generation.
stopSequences - List of strings that stop generation.
toolChoice - Configuration for tool use.
thinkingLevel - Level of thinking to use for the model.
thinkingSummaries - Configuration for thinking summaries.
maxOutputTokens - The maximum number of tokens to include in a candidate.
speechConfig - Configuration for speech generation.
imageConfig - Configuration for image generation.
Enclosing class:
Config

public static record Config.GenerationConfig(Double temperature, Double topP, Integer seed, List<String> stopSequences, Tool.ToolChoiceConfig toolChoice, Config.ThinkingLevel thinkingLevel, Config.ThinkingSummaries thinkingSummaries, Integer maxOutputTokens, List<Config.SpeechConfig> speechConfig, Config.ImageConfig imageConfig) extends Record
Configuration options for model generation.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • temperature

      public Double temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • topP

      public Double topP()
      Returns the value of the topP record component.
      Returns:
      the value of the topP record component
    • seed

      public Integer seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • stopSequences

      public List<String> stopSequences()
      Returns the value of the stopSequences record component.
      Returns:
      the value of the stopSequences record component
    • toolChoice

      public Tool.ToolChoiceConfig toolChoice()
      Returns the value of the toolChoice record component.
      Returns:
      the value of the toolChoice record component
    • thinkingLevel

      public Config.ThinkingLevel thinkingLevel()
      Returns the value of the thinkingLevel record component.
      Returns:
      the value of the thinkingLevel record component
    • thinkingSummaries

      public Config.ThinkingSummaries thinkingSummaries()
      Returns the value of the thinkingSummaries record component.
      Returns:
      the value of the thinkingSummaries record component
    • maxOutputTokens

      public Integer maxOutputTokens()
      Returns the value of the maxOutputTokens record component.
      Returns:
      the value of the maxOutputTokens record component
    • speechConfig

      public List<Config.SpeechConfig> speechConfig()
      Returns the value of the speechConfig record component.
      Returns:
      the value of the speechConfig record component
    • imageConfig

      public Config.ImageConfig imageConfig()
      Returns the value of the imageConfig record component.
      Returns:
      the value of the imageConfig record component