GenerateContentRequest

@Serializable
data class GenerateContentRequest(val contents: List<Content>, val tools: List<Tool>? = null, val generationConfig: GenerationConfig, var toolConfig: ToolConfig? = null, val systemInstruction: Content? = null, val safetySettings: List<SafetySettings> = emptyList())

Constructors

Link copied to clipboard
constructor(contents: List<Content>, tools: List<Tool>? = null, generationConfig: GenerationConfig, toolConfig: ToolConfig? = null, systemInstruction: Content? = null, safetySettings: List<SafetySettings> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "system_instruction")
val systemInstruction: Content? = null
Link copied to clipboard
@SerialName(value = "tool_config")
var toolConfig: ToolConfig?
Link copied to clipboard
val tools: List<Tool>? = null