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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable Duration@Nullable String@Nullable Integer@Nullable Double@Nullable Boolean@Nullable Boolean@Nullable Boolean@Nullable Boolean@Nullable Integer@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable Double@Nullable String@Nullable String@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting>@Nullable org.springframework.ai.google.genai.common.GoogleGenAiServiceTier@Nullable Double@Nullable Integer@Nullable org.springframework.ai.google.genai.common.GoogleGenAiThinkingLevel@Nullable IntegergetTopK()@Nullable DoublegetTopP()@Nullable BooleanvoidsetAutoCacheThreshold(@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) voidvoidvoidsetPresencePenalty(@Nullable Double presencePenalty) voidsetResponseMimeType(@Nullable String responseMimeType) voidsetResponseSchema(@Nullable String responseSchema) voidsetSafetySettings(@Nullable List<org.springframework.ai.google.genai.common.GoogleGenAiSafetySetting> safetySettings) voidsetServiceTier(@Nullable org.springframework.ai.google.genai.common.GoogleGenAiServiceTier serviceTier) 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) org.springframework.ai.google.genai.GoogleGenAiChatOptions
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
GoogleGenAiChatProperties
public GoogleGenAiChatProperties()
-
-
Method Details
-
getStopSequences
-
setStopSequences
-
getTemperature
-
setTemperature
-
getTopP
-
setTopP
-
getTopK
-
setTopK
-
getCandidateCount
-
setCandidateCount
-
getMaxOutputTokens
-
setMaxOutputTokens
-
getModel
-
setModel
-
getResponseMimeType
-
setResponseMimeType
-
getResponseSchema
-
setResponseSchema
-
getFrequencyPenalty
-
setFrequencyPenalty
-
getPresencePenalty
-
setPresencePenalty
-
getThinkingBudget
-
setThinkingBudget
-
getIncludeThoughts
-
setIncludeThoughts
-
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
-
setIncludeExtendedUsageMetadata
-
getCachedContentName
-
setCachedContentName
-
getUseCachedContent
-
setUseCachedContent
-
getAutoCacheThreshold
-
setAutoCacheThreshold
-
getAutoCacheTtl
-
setAutoCacheTtl
-
getGoogleSearchRetrieval
-
setGoogleSearchRetrieval
-
getIncludeServerSideToolInvocations
-
setIncludeServerSideToolInvocations
-
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
-
setLabels
-
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
-