GenerateContentResponse

data class GenerateContentResponse(val candidates: List<Candidate>, val promptFeedback: PromptFeedback? = null, val usageMetadata: UsageMetadata? = null, val modelVersion: String, val responseId: String? = null)(source)

Represents a response from the Gemini API.

Constructors

Link copied to clipboard
constructor(candidates: List<Candidate>, promptFeedback: PromptFeedback? = null, usageMetadata: UsageMetadata? = null, modelVersion: String, responseId: String? = null)

Properties

Link copied to clipboard

The generated candidates.

Link copied to clipboard
Link copied to clipboard

Feedback related to the prompt.

Link copied to clipboard
Link copied to clipboard