Class GoogleGenAiChatOptions.Builder
java.lang.Object
org.springframework.ai.google.genai.GoogleGenAiChatOptions.Builder
- Enclosing class:
GoogleGenAiChatOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoCacheThreshold(Integer autoCacheThreshold) autoCacheTtl(Duration autoCacheTtl) build()cachedContentName(String cachedContentName) candidateCount(Integer candidateCount) frequencyPenalty(Double frequencyPenalty) googleSearchRetrieval(boolean googleSearch) includeExtendedUsageMetadata(Boolean includeExtendedUsageMetadata) includeThoughts(Boolean includeThoughts) internalToolExecutionEnabled(boolean internalToolExecutionEnabled) maxOutputTokens(Integer maxOutputTokens) outputSchema(String jsonSchema) presencePenalty(Double presencePenalty) responseMimeType(String mimeType) responseSchema(String responseSchema) safetySettings(List<GoogleGenAiSafetySetting> safetySettings) stopSequences(List<String> stopSequences) temperature(Double temperature) thinkingBudget(Integer thinkingBudget) thinkingLevel(GoogleGenAiThinkingLevel thinkingLevel) toolCallbacks(List<ToolCallback> toolCallbacks) toolCallbacks(ToolCallback... toolCallbacks) toolContext(Map<String, Object> toolContext) useCachedContent(Boolean useCachedContent)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stopSequences
-
temperature
-
topP
-
topK
-
frequencyPenalty
-
presencePenalty
-
candidateCount
-
maxOutputTokens
-
model
-
model
-
responseMimeType
-
responseSchema
-
outputSchema
-
toolCallbacks
-
toolCallbacks
-
toolNames
-
toolName
-
googleSearchRetrieval
-
safetySettings
-
internalToolExecutionEnabled
public GoogleGenAiChatOptions.Builder internalToolExecutionEnabled(boolean internalToolExecutionEnabled) -
toolContext
-
thinkingBudget
-
includeThoughts
-
thinkingLevel
-
includeExtendedUsageMetadata
public GoogleGenAiChatOptions.Builder includeExtendedUsageMetadata(Boolean includeExtendedUsageMetadata) -
labels
-
cachedContentName
-
useCachedContent
-
autoCacheThreshold
-
autoCacheTtl
-
build
-