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 Summary
ConstructorsConstructorDescriptionGenerationConfig(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) Creates an instance of aGenerationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimageConfigrecord component.Returns the value of themaxOutputTokensrecord component.seed()Returns the value of theseedrecord component.Returns the value of thespeechConfigrecord component.Returns the value of thestopSequencesrecord component.Returns the value of thetemperaturerecord component.Returns the value of thethinkingLevelrecord component.Returns the value of thethinkingSummariesrecord component.Returns the value of thetoolChoicerecord component.topP()Returns the value of thetopPrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenerationConfig
public 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) Creates an instance of aGenerationConfigrecord class.- Parameters:
temperature- the value for thetemperaturerecord componenttopP- the value for thetopPrecord componentseed- the value for theseedrecord componentstopSequences- the value for thestopSequencesrecord componenttoolChoice- the value for thetoolChoicerecord componentthinkingLevel- the value for thethinkingLevelrecord componentthinkingSummaries- the value for thethinkingSummariesrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentspeechConfig- the value for thespeechConfigrecord componentimageConfig- the value for theimageConfigrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
topP
Returns the value of thetopPrecord component.- Returns:
- the value of the
topPrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
stopSequences
Returns the value of thestopSequencesrecord component.- Returns:
- the value of the
stopSequencesrecord component
-
toolChoice
Returns the value of thetoolChoicerecord component.- Returns:
- the value of the
toolChoicerecord component
-
thinkingLevel
Returns the value of thethinkingLevelrecord component.- Returns:
- the value of the
thinkingLevelrecord component
-
thinkingSummaries
Returns the value of thethinkingSummariesrecord component.- Returns:
- the value of the
thinkingSummariesrecord component
-
maxOutputTokens
Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
speechConfig
Returns the value of thespeechConfigrecord component.- Returns:
- the value of the
speechConfigrecord component
-
imageConfig
Returns the value of theimageConfigrecord component.- Returns:
- the value of the
imageConfigrecord component
-