Class GoogleGenAiChatProperties.Options
java.lang.Object
org.springframework.ai.model.google.genai.autoconfigure.chat.GoogleGenAiChatProperties.Options
- Enclosing class:
- GoogleGenAiChatProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DurationDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevelDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetTopK()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoublegetTopP()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.voidsetAutoCacheThreshold(@Nullable Integer autoCacheThreshold) voidsetAutoCacheTtl(@Nullable Duration autoCacheTtl) voidsetCachedContentName(@Nullable String cachedContentName) voidsetCandidateCount(@Nullable Integer candidateCount) voidsetFrequencyPenalty(@Nullable Double frequencyPenalty) voidsetGoogleSearchRetrieval(@Nullable Boolean googleSearchRetrieval) voidsetIncludeExtendedUsageMetadata(@Nullable Boolean includeExtendedUsageMetadata) voidsetIncludeServerSideToolInvocations(@Nullable Boolean includeServerSideToolInvocations) voidsetIncludeThoughts(@Nullable Boolean includeThoughts) voidvoidsetMaxOutputTokens(@Nullable Integer maxOutputTokens) voidvoidsetPresencePenalty(@Nullable Double presencePenalty) voidsetResponseMimeType(@Nullable String responseMimeType) voidsetResponseSchema(@Nullable String responseSchema) voidsetSafetySettings(@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> safetySettings) voidsetStopSequences(@Nullable List<String> stopSequences) voidsetTemperature(@Nullable Double temperature) voidsetThinkingBudget(@Nullable Integer thinkingBudget) voidsetThinkingLevel(@Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel thinkingLevel) voidvoidvoidsetUseCachedContent(@Nullable Boolean useCachedContent)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getModel
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.model") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getModel()Deprecated, for removal: This API element is subject to removal in a future version. -
setModel
-
getStopSequences
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.stop-sequences") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<String> getStopSequences()Deprecated, for removal: This API element is subject to removal in a future version. -
setStopSequences
-
getTemperature
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.temperature") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTemperature()Deprecated, for removal: This API element is subject to removal in a future version. -
setTemperature
-
getTopP
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.top-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTopP()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopP
-
getTopK
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.top-k") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getTopK()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopK
-
getCandidateCount
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.candidate-count") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getCandidateCount()Deprecated, for removal: This API element is subject to removal in a future version. -
setCandidateCount
-
getMaxOutputTokens
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.max-output-tokens") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMaxOutputTokens()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxOutputTokens
-
getResponseMimeType
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.response-mime-type") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getResponseMimeType()Deprecated, for removal: This API element is subject to removal in a future version. -
setResponseMimeType
-
getResponseSchema
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.response-schema") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getResponseSchema()Deprecated, for removal: This API element is subject to removal in a future version. -
setResponseSchema
-
getFrequencyPenalty
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.frequency-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getFrequencyPenalty()Deprecated, for removal: This API element is subject to removal in a future version. -
setFrequencyPenalty
-
getPresencePenalty
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.presence-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getPresencePenalty()Deprecated, for removal: This API element is subject to removal in a future version. -
setPresencePenalty
-
getThinkingBudget
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.thinking-budget") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getThinkingBudget()Deprecated, for removal: This API element is subject to removal in a future version. -
setThinkingBudget
-
getIncludeThoughts
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.include-thoughts") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getIncludeThoughts()Deprecated, for removal: This API element is subject to removal in a future version. -
setIncludeThoughts
-
getThinkingLevel
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.thinking-level") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel getThinkingLevel()Deprecated, for removal: This API element is subject to removal in a future version. -
setThinkingLevel
public void setThinkingLevel(@Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel thinkingLevel) -
getIncludeExtendedUsageMetadata
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.include-extended-usage-metadata") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getIncludeExtendedUsageMetadata()Deprecated, for removal: This API element is subject to removal in a future version. -
setIncludeExtendedUsageMetadata
-
getCachedContentName
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.cached-content-name") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getCachedContentName()Deprecated, for removal: This API element is subject to removal in a future version. -
setCachedContentName
-
getUseCachedContent
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.use-cached-content") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getUseCachedContent()Deprecated, for removal: This API element is subject to removal in a future version. -
setUseCachedContent
-
getAutoCacheThreshold
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.auto-cache-threshold") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getAutoCacheThreshold()Deprecated, for removal: This API element is subject to removal in a future version. -
setAutoCacheThreshold
-
getAutoCacheTtl
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.auto-cache-ttl") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Duration getAutoCacheTtl()Deprecated, for removal: This API element is subject to removal in a future version. -
setAutoCacheTtl
-
getGoogleSearchRetrieval
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.google-search-retrieval") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getGoogleSearchRetrieval()Deprecated, for removal: This API element is subject to removal in a future version. -
setGoogleSearchRetrieval
-
getIncludeServerSideToolInvocations
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.include-server-side-tool-invocations") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getIncludeServerSideToolInvocations()Deprecated, for removal: This API element is subject to removal in a future version. -
setIncludeServerSideToolInvocations
-
getSafetySettings
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.safety-settings") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> getSafetySettings()Deprecated, for removal: This API element is subject to removal in a future version. -
setSafetySettings
public void setSafetySettings(@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> safetySettings) -
getLabels
@DeprecatedConfigurationProperty(replacement="spring.ai.google.genai.chat.labels") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Map<String,String> getLabels()Deprecated, for removal: This API element is subject to removal in a future version. -
setLabels
-