# 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

GenerateContentConfig
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

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