Builder
A builder for GenerationConfig.
Functions
Adds a single SpeechConfig to Builder.speechConfig.
Adds a single String to stopSequences.
Returns an immutable instance of GenerationConfig.
Sets Builder.imageConfig to an arbitrary JSON value.
Configuration for image interaction.
Sets Builder.maxOutputTokens to an arbitrary JSON value.
The maximum number of tokens to include in the response.
Sets Builder.seed to an arbitrary JSON value.
Seed used in decoding for reproducibility.
Sets Builder.speechConfig to an arbitrary JSON value.
Configuration for speech interaction.
Sets Builder.stopSequences to an arbitrary JSON value.
A list of character sequences that will stop output interaction.
Sets Builder.temperature to an arbitrary JSON value.
Controls the randomness of the output.
Sets Builder.thinkingLevel to an arbitrary JSON value.
The level of thought tokens that the model should generate.
Sets Builder.thinkingSummaries to an arbitrary JSON value.
Whether to include thought summaries in the response.
Sets Builder.toolChoice to an arbitrary JSON value.
The tool choice configuration.
Alias for calling toolChoice with ToolChoice.ofConfig(config).
Alias for calling toolChoice with ToolChoice.ofType(type).
Sets Builder.topP to an arbitrary JSON value.
The maximum cumulative probability of tokens to consider when sampling.