Class GenerationConfig

java.lang.Object
com.google.genai.gaos.models.interactions.GenerationConfig

public class GenerationConfig extends Object
GenerationConfig

Configuration parameters for model interactions.

  • Constructor Details

  • Method Details

    • imageConfig

      @Deprecated public Optional<ImageConfig> 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

      public Optional<Integer> maxOutputTokens()
      The maximum number of tokens to include in the response.
    • seed

      public Optional<Integer> seed()
      Seed used in decoding for reproducibility.
    • speechConfig

      public Optional<SpeechConfigUnion> speechConfig()
      Optional. Speech and multi-speaker configuration.
    • stopSequences

      public Optional<List<String>> stopSequences()
      A list of character sequences that will stop output interaction.
    • temperature

      @Deprecated public Optional<Float> 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

      public Optional<ThinkingLevel> thinkingLevel()
    • thinkingSummaries

      public Optional<ThinkingSummaries> thinkingSummaries()
    • toolChoice

      public Optional<ToolChoice> toolChoice()
      The tool choice configuration.
    • topP

      @Deprecated public Optional<Float> 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

      public Optional<TranscriptionConfig> transcriptionConfig()
      Configuration for speech recognition (transcription).
    • videoConfig

      public Optional<VideoConfig> videoConfig()
      Configuration options for video generation.
    • builder

      public static GenerationConfig.Builder builder()
    • withImageConfig

      @Deprecated public GenerationConfig withImageConfig(@Nullable ImageConfig 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.
    • withMaxOutputTokens

      public GenerationConfig withMaxOutputTokens(@Nullable Integer maxOutputTokens)
      The maximum number of tokens to include in the response.
    • withSeed

      public GenerationConfig withSeed(@Nullable Integer seed)
      Seed used in decoding for reproducibility.
    • withSpeechConfig

      public GenerationConfig withSpeechConfig(@Nullable SpeechConfigUnion speechConfig)
      Optional. Speech and multi-speaker configuration.
    • withStopSequences

      public GenerationConfig withStopSequences(@Nullable List<String> stopSequences)
      A list of character sequences that will stop output interaction.
    • withTemperature

      @Deprecated public GenerationConfig withTemperature(@Nullable Float 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.
    • withThinkingLevel

      public GenerationConfig withThinkingLevel(@Nullable ThinkingLevel thinkingLevel)
    • withThinkingSummaries

      public GenerationConfig withThinkingSummaries(@Nullable ThinkingSummaries thinkingSummaries)
    • withToolChoice

      public GenerationConfig withToolChoice(@Nullable ToolChoice toolChoice)
      The tool choice configuration.
    • withTopP

      @Deprecated public GenerationConfig withTopP(@Nullable Float 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.
    • withTranscriptionConfig

      public GenerationConfig withTranscriptionConfig(@Nullable TranscriptionConfig transcriptionConfig)
      Configuration for speech recognition (transcription).
    • withVideoConfig

      public GenerationConfig withVideoConfig(@Nullable VideoConfig videoConfig)
      Configuration options for video generation.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object