# GenerateContentResponse

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

Response from the generate content request.

## Constructors

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

## Properties

candidates
Link copied to clipboard
val candidates: List<Candidate>

The generated candidates.

modelVersion
Link copied to clipboard
val modelVersion: String? = null

The model version used to generate the response.

promptFeedback
Link copied to clipboard
val promptFeedback: PromptFeedback? = null

The prompt feedback.

usageMetadata
Link copied to clipboard
val usageMetadata: UsageMetadata? = null

The usage metadata.