Class GenerationConfig
java.lang.Object
com.google.genai.gaos.models.interactions.GenerationConfig
GenerationConfig
Configuration parameters for model interactions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGenerationConfig(ImageConfig imageConfig, Integer maxOutputTokens, Integer seed, SpeechConfigUnion speechConfig, List<String> stopSequences, ThinkingLevel thinkingLevel, ThinkingSummaries thinkingSummaries, ToolChoice toolChoice, TranscriptionConfig transcriptionConfig, VideoConfig videoConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationConfig.Builderbuilder()booleaninthashCode()Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The maximum number of tokens to include in the response.seed()Seed used in decoding for reproducibility.Optional.A list of character sequences that will stop output interaction.The tool choice configuration.toString()Configuration for speech recognition (transcription).Configuration options for video generation.withImageConfig(ImageConfig imageConfig) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withMaxOutputTokens(Integer maxOutputTokens) The maximum number of tokens to include in the response.Seed used in decoding for reproducibility.withSpeechConfig(SpeechConfigUnion speechConfig) Optional.withStopSequences(List<String> stopSequences) A list of character sequences that will stop output interaction.withThinkingLevel(ThinkingLevel thinkingLevel) withThinkingSummaries(ThinkingSummaries thinkingSummaries) withToolChoice(ToolChoice toolChoice) The tool choice configuration.withTranscriptionConfig(TranscriptionConfig transcriptionConfig) Configuration for speech recognition (transcription).withVideoConfig(VideoConfig videoConfig) Configuration options for video generation.
-
Constructor Details
-
GenerationConfig
public GenerationConfig(@Nullable ImageConfig imageConfig, @Nullable Integer maxOutputTokens, @Nullable Integer seed, @Nullable SpeechConfigUnion speechConfig, @Nullable List<String> stopSequences, @Nullable ThinkingLevel thinkingLevel, @Nullable ThinkingSummaries thinkingSummaries, @Nullable ToolChoice toolChoice, @Nullable TranscriptionConfig transcriptionConfig, @Nullable VideoConfig videoConfig) -
GenerationConfig
public GenerationConfig()
-
-
Method Details
-
imageConfig
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The configuration for image interaction. -
maxOutputTokens
The maximum number of tokens to include in the response. -
seed
Seed used in decoding for reproducibility. -
speechConfig
Optional. Speech and multi-speaker configuration. -
stopSequences
A list of character sequences that will stop output interaction. -
thinkingLevel
-
thinkingSummaries
-
toolChoice
The tool choice configuration. -
transcriptionConfig
Configuration for speech recognition (transcription). -
videoConfig
Configuration options for video generation. -
builder
-
withImageConfig
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The configuration for image interaction. -
withMaxOutputTokens
The maximum number of tokens to include in the response. -
withSeed
Seed used in decoding for reproducibility. -
withSpeechConfig
Optional. Speech and multi-speaker configuration. -
withStopSequences
A list of character sequences that will stop output interaction. -
withThinkingLevel
-
withThinkingSummaries
-
withToolChoice
The tool choice configuration. -
withTranscriptionConfig
Configuration for speech recognition (transcription). -
withVideoConfig
Configuration options for video generation. -
equals
-
hashCode
public int hashCode() -
toString
-