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, Boolean streamFunctionCallArguments, Float temperature, ThinkingLevel thinkingLevel, ThinkingSummaries thinkingSummaries, ToolChoice toolChoice, Float topP, 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.When true, the arguments of a single function call stream out in multiple `arguments_delta` pieces.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The tool choice configuration.topP()Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.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.withStreamFunctionCallArguments(Boolean streamFunctionCallArguments) When true, the arguments of a single function call stream out in multiple `arguments_delta` pieces.withTemperature(Float temperature) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withThinkingLevel(ThinkingLevel thinkingLevel) withThinkingSummaries(ThinkingSummaries thinkingSummaries) withToolChoice(ToolChoice toolChoice) The tool choice configuration.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.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 Boolean streamFunctionCallArguments, @Nullable Float temperature, @Nullable ThinkingLevel thinkingLevel, @Nullable ThinkingSummaries thinkingSummaries, @Nullable ToolChoice toolChoice, @Nullable Float topP, @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. -
streamFunctionCallArguments
When true, the arguments of a single function call stream out in multiple `arguments_delta` pieces. Independent of the tool choice mode. -
temperature
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Controls the randomness of the output. -
thinkingLevel
-
thinkingSummaries
-
toolChoice
The tool choice configuration. -
topP
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The maximum cumulative probability of tokens to consider when sampling. -
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. -
withStreamFunctionCallArguments
public GenerationConfig withStreamFunctionCallArguments(@Nullable Boolean streamFunctionCallArguments) When true, the arguments of a single function call stream out in multiple `arguments_delta` pieces. Independent of the tool choice mode. -
withTemperature
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Controls the randomness of the output. -
withThinkingLevel
-
withThinkingSummaries
-
withToolChoice
The tool choice configuration. -
withTopP
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The maximum cumulative probability of tokens to consider when sampling. -
withTranscriptionConfig
Configuration for speech recognition (transcription). -
withVideoConfig
Configuration options for video generation. -
equals
-
hashCode
public int hashCode() -
toString
-