Class VertexAiGeminiChatOptions
java.lang.Object
org.springframework.ai.vertexai.gemini.VertexAiGeminiChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions, org.springframework.ai.model.ModelOptions, org.springframework.ai.model.tool.StructuredOutputChatOptions, org.springframework.ai.model.tool.ToolCallingChatOptions
public class VertexAiGeminiChatOptions
extends Object
implements org.springframework.ai.model.tool.ToolCallingChatOptions, org.springframework.ai.model.tool.StructuredOutputChatOptions
Options for the Vertex AI Gemini Chat API.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale, Grogdunn, Ilayaperumal Gopinathan, Soby Chacko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
Fields inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
DEFAULT_TOOL_EXECUTION_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()copy()booleanstatic VertexAiGeminiChatOptionsfromOptions(VertexAiGeminiChatOptions fromOptions) getModel()booleangetSeed()List<org.springframework.ai.tool.ToolCallback> getTopK()getTopP()inthashCode()voidsetCandidateCount(Integer candidateCount) voidsetFrequencyPenalty(Double frequencyPenalty) voidsetGoogleSearchRetrieval(Boolean googleSearchRetrieval) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetLogprobs(Integer logprobs) voidsetMaxOutputTokens(Integer maxOutputTokens) voidsetMaxTokens(Integer maxTokens) voidvoidsetOutputSchema(String jsonSchemaText) voidsetPresencePenalty(Double presencePenalty) voidsetResponseLogprobs(boolean responseLogprobs) voidsetResponseMimeType(String mimeType) voidsetResponseSchema(String responseSchema) voidsetSafetySettings(List<VertexAiGeminiSafetySetting> safetySettings) voidvoidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidvoidtoString()
-
Constructor Details
-
VertexAiGeminiChatOptions
public VertexAiGeminiChatOptions()
-
-
Method Details
-
builder
-
fromOptions
-
getStopSequences
-
setStopSequences
-
getTemperature
- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTemperature
-
setResponseLogprobs
public void setResponseLogprobs(boolean responseLogprobs) -
getTopP
- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopP
-
getTopK
- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopK
-
getSeed
-
setSeed
-
getCandidateCount
-
setCandidateCount
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setMaxTokens
-
getMaxOutputTokens
-
setMaxOutputTokens
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setModel
-
getResponseMimeType
-
setResponseMimeType
-
getResponseSchema
-
setResponseSchema
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
-
setToolNames
-
getInternalToolExecutionEnabled
- Specified by:
getInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setFrequencyPenalty
-
setPresencePenalty
-
getGoogleSearchRetrieval
-
setGoogleSearchRetrieval
-
getSafetySettings
-
setSafetySettings
-
getToolContext
-
setToolContext
-
getLogprobs
-
setLogprobs
-
getResponseLogprobs
public boolean getResponseLogprobs() -
getOutputSchema
- Specified by:
getOutputSchemain interfaceorg.springframework.ai.model.tool.StructuredOutputChatOptions
-
setOutputSchema
- Specified by:
setOutputSchemain interfaceorg.springframework.ai.model.tool.StructuredOutputChatOptions
-
equals
-
hashCode
-
toString
-
copy
- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-