Class GoogleGenAiChatProperties

java.lang.Object
org.springframework.ai.model.google.genai.autoconfigure.chat.GoogleGenAiChatProperties

@ConfigurationProperties("spring.ai.google.genai.chat") public class GoogleGenAiChatProperties extends Object
Configuration properties for Google GenAI Chat.
Since:
1.1.0
Author:
Christian Tzolov, Hyunsang Han, Sebastien Deleuze
  • Field Details

  • Constructor Details

    • GoogleGenAiChatProperties

      public GoogleGenAiChatProperties()
  • Method Details

    • getStopSequences

      public @Nullable List<String> getStopSequences()
    • setStopSequences

      public void setStopSequences(@Nullable List<String> stopSequences)
    • getTemperature

      public @Nullable Double getTemperature()
    • setTemperature

      public void setTemperature(@Nullable Double temperature)
    • getTopP

      public @Nullable Double getTopP()
    • setTopP

      public void setTopP(@Nullable Double topP)
    • getTopK

      public @Nullable Integer getTopK()
    • setTopK

      public void setTopK(@Nullable Integer topK)
    • getCandidateCount

      public @Nullable Integer getCandidateCount()
    • setCandidateCount

      public void setCandidateCount(@Nullable Integer candidateCount)
    • getMaxOutputTokens

      public @Nullable Integer getMaxOutputTokens()
    • setMaxOutputTokens

      public void setMaxOutputTokens(@Nullable Integer maxOutputTokens)
    • getModel

      public @Nullable String getModel()
    • setModel

      public void setModel(@Nullable String model)
    • getResponseMimeType

      public @Nullable String getResponseMimeType()
    • setResponseMimeType

      public void setResponseMimeType(@Nullable String responseMimeType)
    • getResponseSchema

      public @Nullable String getResponseSchema()
    • setResponseSchema

      public void setResponseSchema(@Nullable String responseSchema)
    • getFrequencyPenalty

      public @Nullable Double getFrequencyPenalty()
    • setFrequencyPenalty

      public void setFrequencyPenalty(@Nullable Double frequencyPenalty)
    • getPresencePenalty

      public @Nullable Double getPresencePenalty()
    • setPresencePenalty

      public void setPresencePenalty(@Nullable Double presencePenalty)
    • getThinkingBudget

      public @Nullable Integer getThinkingBudget()
    • setThinkingBudget

      public void setThinkingBudget(@Nullable Integer thinkingBudget)
    • getIncludeThoughts

      public @Nullable Boolean getIncludeThoughts()
    • setIncludeThoughts

      public void setIncludeThoughts(@Nullable Boolean includeThoughts)
    • getThinkingLevel

      public @Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel getThinkingLevel()
    • setThinkingLevel

      public void setThinkingLevel(@Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel thinkingLevel)
    • getIncludeExtendedUsageMetadata

      public @Nullable Boolean getIncludeExtendedUsageMetadata()
    • setIncludeExtendedUsageMetadata

      public void setIncludeExtendedUsageMetadata(@Nullable Boolean includeExtendedUsageMetadata)
    • getCachedContentName

      public @Nullable String getCachedContentName()
    • setCachedContentName

      public void setCachedContentName(@Nullable String cachedContentName)
    • getUseCachedContent

      public @Nullable Boolean getUseCachedContent()
    • setUseCachedContent

      public void setUseCachedContent(@Nullable Boolean useCachedContent)
    • getAutoCacheThreshold

      public @Nullable Integer getAutoCacheThreshold()
    • setAutoCacheThreshold

      public void setAutoCacheThreshold(@Nullable Integer autoCacheThreshold)
    • getAutoCacheTtl

      public @Nullable Duration getAutoCacheTtl()
    • setAutoCacheTtl

      public void setAutoCacheTtl(@Nullable Duration autoCacheTtl)
    • getGoogleSearchRetrieval

      public @Nullable Boolean getGoogleSearchRetrieval()
    • setGoogleSearchRetrieval

      public void setGoogleSearchRetrieval(@Nullable Boolean googleSearchRetrieval)
    • getIncludeServerSideToolInvocations

      public @Nullable Boolean getIncludeServerSideToolInvocations()
    • setIncludeServerSideToolInvocations

      public void setIncludeServerSideToolInvocations(@Nullable Boolean includeServerSideToolInvocations)
    • getSafetySettings

      public @Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> getSafetySettings()
    • setSafetySettings

      public void setSafetySettings(@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> safetySettings)
    • getLabels

      public @Nullable Map<String,String> getLabels()
    • setLabels

      public void setLabels(@Nullable Map<String,String> labels)
    • getServiceTier

      public @Nullable org.springframework.ai.google.genai.common.GoogleGenAiServiceTier getServiceTier()
      Since:
      2.0.0
    • setServiceTier

      public void setServiceTier(@Nullable org.springframework.ai.google.genai.common.GoogleGenAiServiceTier serviceTier)
      Since:
      2.0.0
    • toOptions

      public org.springframework.ai.google.genai.GoogleGenAiChatOptions toOptions()
    • getOptions

      @DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat") @Deprecated(since="2.0.0", forRemoval=true) public GoogleGenAiChatProperties.Options getOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOptions

      public void setOptions(GoogleGenAiChatProperties.Options options)