Class GoogleGenAiChatOptions.AbstractBuilder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder<B>
org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder<B>
org.springframework.ai.google.genai.GoogleGenAiChatOptions.AbstractBuilder<B>
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions.Builder<B>, org.springframework.ai.model.tool.StructuredOutputChatOptions.Builder<B>, org.springframework.ai.model.tool.ToolCallingChatOptions.Builder<B>
- Direct Known Subclasses:
GoogleGenAiChatOptions.Builder
- Enclosing class:
GoogleGenAiChatOptions
@NullMarked
protected abstract static class GoogleGenAiChatOptions.AbstractBuilder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>
extends org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder<B>
implements org.springframework.ai.model.tool.StructuredOutputChatOptions.Builder<B>
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale, Grogdunn, Ilayaperumal Gopinathan, Soby Chacko, Dan Dobrin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Integerprotected @Nullable Durationprotected @Nullable Stringprotected @Nullable Integerprotected @Nullable Booleanprotected @Nullable Booleanprotected @Nullable Booleanprotected @Nullable Booleanprotected @Nullable Stringprotected @Nullable Stringprotected List<GoogleGenAiSafetySetting> protected @Nullable Integerprotected @Nullable GoogleGenAiThinkingLevelprotected @Nullable BooleanFields inherited from class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
internalToolExecutionEnabled, toolCallbacks, toolContext, toolNamesFields inherited from class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
frequencyPenalty, maxTokens, model, presencePenalty, stopSequences, temperature, topK, topP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoCacheThreshold(@Nullable Integer autoCacheThreshold) autoCacheTtl(@Nullable Duration autoCacheTtl) build()cachedContentName(@Nullable String cachedContentName) candidateCount(@Nullable Integer candidateCount) combineWith(org.springframework.ai.chat.prompt.ChatOptions.Builder<?> other) googleSearchRetrieval(@Nullable Boolean googleSearch) includeExtendedUsageMetadata(@Nullable Boolean includeExtendedUsageMetadata) includeServerSideToolInvocations(@Nullable Boolean includeServerSideToolInvocations) includeThoughts(@Nullable Boolean includeThoughts) maxOutputTokens(@Nullable Integer maxOutputTokens) model(@Nullable GoogleGenAiChatModel.ChatModel model) outputSchema(@Nullable String jsonSchema) responseMimeType(@Nullable String mimeType) responseSchema(@Nullable String responseSchema) safetySettings(List<GoogleGenAiSafetySetting> safetySettings) thinkingBudget(@Nullable Integer thinkingBudget) thinkingLevel(@Nullable GoogleGenAiThinkingLevel thinkingLevel) useCachedContent(@Nullable Boolean useCachedContent) Methods inherited from class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
internalToolExecutionEnabled, toolCallbacks, toolCallbacks, toolContext, toolContext, toolNames, toolNamesMethods inherited from class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
frequencyPenalty, maxTokens, model, presencePenalty, self, stopSequences, temperature, topK, topPMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
frequencyPenalty, maxTokens, model, presencePenalty, stopSequences, temperature, topK, topP
-
Field Details
-
candidateCount
-
responseMimeType
-
responseSchema
-
thinkingBudget
-
includeThoughts
-
thinkingLevel
-
includeExtendedUsageMetadata
-
cachedContentName
-
useCachedContent
-
autoCacheThreshold
-
autoCacheTtl
-
googleSearchRetrieval
-
includeServerSideToolInvocations
-
safetySettings
-
labels
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
candidateCount
-
maxOutputTokens
-
model
-
responseMimeType
-
responseSchema
-
outputSchema
- Specified by:
outputSchemain interfaceorg.springframework.ai.model.tool.StructuredOutputChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>
-
googleSearchRetrieval
-
includeServerSideToolInvocations
-
safetySettings
-
thinkingBudget
-
includeThoughts
-
thinkingLevel
-
includeExtendedUsageMetadata
-
labels
-
cachedContentName
-
useCachedContent
-
autoCacheThreshold
-
autoCacheTtl
-
combineWith
- Specified by:
combineWithin interfaceorg.springframework.ai.chat.prompt.ChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>- Overrides:
combineWithin classorg.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>
-
build
- Specified by:
buildin interfaceorg.springframework.ai.chat.prompt.ChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>- Specified by:
buildin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>- Overrides:
buildin classorg.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder<B extends GoogleGenAiChatOptions.AbstractBuilder<B>>
-