GenerationConfig

@Serializable
data class GenerationConfig(val temperature: Float?, val topP: Float?, val topK: Int?, val candidateCount: Int? = null, val maxOutputTokens: Int? = null, val stopSequences: List<String>? = null, val responseMimeType: String? = null, val presencePenalty: Float? = null, val frequencyPenalty: Float? = null, val thinkingConfig: ThinkingConfig? = null, val responseSchema: JsonObject? = null)

Constructors

Link copied to clipboard
constructor(temperature: Float?, topP: Float?, topK: Int?, candidateCount: Int? = null, maxOutputTokens: Int? = null, stopSequences: List<String>? = null, responseMimeType: String? = null, presencePenalty: Float? = null, frequencyPenalty: Float? = null, thinkingConfig: ThinkingConfig? = null, responseSchema: JsonObject? = null)

Properties

Link copied to clipboard
@SerialName(value = "candidate_count")
val candidateCount: Int? = null
Link copied to clipboard
@SerialName(value = "frequency_penalty")
val frequencyPenalty: Float? = null
Link copied to clipboard
@SerialName(value = "max_output_tokens")
val maxOutputTokens: Int? = null
Link copied to clipboard
@SerialName(value = "presence_penalty")
val presencePenalty: Float? = null
Link copied to clipboard
@SerialName(value = "response_mime_type")
val responseMimeType: String? = null
Link copied to clipboard
val responseSchema: JsonObject? = null
Link copied to clipboard
@SerialName(value = "stop_sequences")
val stopSequences: List<String>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "top_k")
val topK: Int?
Link copied to clipboard
@SerialName(value = "top_p")
val topP: Float?