Class VertexAiGeminiChatOptions.Builder
java.lang.Object
org.springframework.ai.vertexai.gemini.VertexAiGeminiChatOptions.Builder
- Enclosing class:
- VertexAiGeminiChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
candidateCount
(Integer candidateCount) functionCallbacks
(List<FunctionCallback> functionCallbacks) googleSearchRetrieval
(boolean googleSearch) maxOutputTokens
(Integer maxOutputTokens) proxyToolCalls
(boolean proxyToolCalls) responseMimeType
(String mimeType) safetySettings
(List<VertexAiGeminiSafetySetting> safetySettings) stopSequences
(List<String> stopSequences) temperature
(Double temperature) toolContext
(Map<String, Object> toolContext) withCandidateCount
(Integer candidateCount) Deprecated, for removal: This API element is subject to removal in a future version.withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead.withFunctions
(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead.withGoogleSearchRetrieval
(boolean googleSearch) Deprecated, for removal: This API element is subject to removal in a future version.usegoogleSearchRetrieval(boolean)
instead.withMaxOutputTokens
(Integer maxOutputTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxOutputTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(ChatModel)
instead.withProxyToolCalls
(boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(boolean)
instead.withResponseMimeType
(String mimeType) Deprecated, for removal: This API element is subject to removal in a future version.useresponseMimeType(String)
instead.withSafetySettings
(List<VertexAiGeminiSafetySetting> safetySettings) Deprecated, for removal: This API element is subject to removal in a future version.withStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.withToolContext
(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stopSequences
-
temperature
-
topP
-
topK
-
candidateCount
-
maxOutputTokens
-
model
-
model
-
responseMimeType
-
functionCallbacks
public VertexAiGeminiChatOptions.Builder functionCallbacks(List<FunctionCallback> functionCallbacks) -
functions
-
function
-
googleSearchRetrieval
-
safetySettings
public VertexAiGeminiChatOptions.Builder safetySettings(List<VertexAiGeminiSafetySetting> safetySettings) -
proxyToolCalls
-
toolContext
-
withStopSequences
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withCandidateCount
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withCandidateCount(Integer candidateCount) Deprecated, for removal: This API element is subject to removal in a future version.usecandidateCount(Integer)
instead. -
withMaxOutputTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withMaxOutputTokens(Integer maxOutputTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxOutputTokens(Integer)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withModel(String modelName) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withModel(VertexAiGeminiChatModel.ChatModel model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(ChatModel)
instead. -
withResponseMimeType
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withResponseMimeType(String mimeType) Deprecated, for removal: This API element is subject to removal in a future version.useresponseMimeType(String)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withFunctions(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead. -
withFunction
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withGoogleSearchRetrieval
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withGoogleSearchRetrieval(boolean googleSearch) Deprecated, for removal: This API element is subject to removal in a future version.usegoogleSearchRetrieval(boolean)
instead. -
withSafetySettings
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withSafetySettings(List<VertexAiGeminiSafetySetting> safetySettings) Deprecated, for removal: This API element is subject to removal in a future version. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withProxyToolCalls(boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(boolean)
instead. -
withToolContext
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiGeminiChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
candidateCount(Integer)
instead.