GenerateContentConfig

data class GenerateContentConfig(val tools: List<Tool>? = null, val labels: Map<String, String>? = null, val systemInstruction: Content? = null, val temperature: Float? = null, val topP: Float? = null, val topK: Int? = null, val candidateCount: Int? = null, val maxOutputTokens: Int? = null, val stopSequences: List<String>? = null, val responseMimeType: String? = null, val thinkingConfig: ThinkingConfig? = null)

Configuration for generating content.

Constructors

Link copied to clipboard
constructor(tools: List<Tool>? = null, labels: Map<String, String>? = null, systemInstruction: Content? = null, temperature: Float? = null, topP: Float? = null, topK: Int? = null, candidateCount: Int? = null, maxOutputTokens: Int? = null, stopSequences: List<String>? = null, responseMimeType: String? = null, thinkingConfig: ThinkingConfig? = null)

Properties

Link copied to clipboard
val candidateCount: Int? = null
Link copied to clipboard
val labels: Map<String, String>? = null
Link copied to clipboard
val maxOutputTokens: Int? = null
Link copied to clipboard
Link copied to clipboard
val stopSequences: List<String>? = null
Link copied to clipboard
Link copied to clipboard
val temperature: Float? = null
Link copied to clipboard
Link copied to clipboard
val tools: List<Tool>? = null
Link copied to clipboard
val topK: Int? = null
Link copied to clipboard
val topP: Float? = null