public class GeminiGenerationConfig extends Object
| Constructor and Description |
|---|
GeminiGenerationConfig() |
GeminiGenerationConfig(Float temperature,
Integer topK,
Double topP,
Integer maxOutputTokens,
List<String> stopSequences,
List<String> responseModalities,
String responseMimeType,
UniResponseSchema responseSchema,
UniThinkingConfig thinkingConfig) |
| Modifier and Type | Method and Description |
|---|---|
GeminiGenerationConfig |
buildJsonValue() |
Integer |
getMaxOutputTokens() |
String |
getResponseMimeType() |
List<String> |
getResponseModalities() |
UniResponseSchema |
getResponseSchema() |
List<String> |
getStopSequences() |
Float |
getTemperature() |
UniThinkingConfig |
getThinkingConfig() |
Integer |
getTopK() |
Double |
getTopP() |
void |
setMaxOutputTokens(Integer maxOutputTokens) |
void |
setResponseMimeType(String responseMimeType) |
void |
setResponseModalities(List<String> responseModalities) |
void |
setResponseSchema(UniResponseSchema responseSchema) |
void |
setStopSequences(List<String> stopSequences) |
void |
setTemperature(Float temperature) |
void |
setThinkingConfig(UniThinkingConfig thinkingConfig) |
void |
setTopK(Integer topK) |
void |
setTopP(Double topP) |
public GeminiGenerationConfig buildJsonValue()
public Float getTemperature()
public void setTemperature(Float temperature)
public Integer getTopK()
public void setTopK(Integer topK)
public Double getTopP()
public void setTopP(Double topP)
public Integer getMaxOutputTokens()
public void setMaxOutputTokens(Integer maxOutputTokens)
public String getResponseMimeType()
public void setResponseMimeType(String responseMimeType)
public UniResponseSchema getResponseSchema()
public void setResponseSchema(UniResponseSchema responseSchema)
public UniThinkingConfig getThinkingConfig()
public void setThinkingConfig(UniThinkingConfig thinkingConfig)
Copyright © 2026. All rights reserved.