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 responseSchema: Schema? = null, val thinkingConfig: ThinkingConfig? = null, val toolConfig: ToolConfig? = null, val safetySettings: List<SafetySetting>? = null, val mediaResolution: MediaResolution? = null, val serviceTier: ServiceTier? = null, val presencePenalty: Float? = null, val frequencyPenalty: Float? = null, val responseLogprobs: Boolean? = 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, responseSchema: Schema? = null, thinkingConfig: ThinkingConfig? = null, toolConfig: ToolConfig? = null, safetySettings: List<SafetySetting>? = null, mediaResolution: MediaResolution? = null, serviceTier: ServiceTier? = null, presencePenalty: Float? = null, frequencyPenalty: Float? = null, responseLogprobs: Boolean? = null)

Properties

Link copied to clipboard
val candidateCount: Int? = null
Link copied to clipboard
val frequencyPenalty: Float? = 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 presencePenalty: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val responseSchema: Schema? = null
Link copied to clipboard
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 toolConfig: ToolConfig? = null
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