GenerateContentResponse


class GenerateContentResponse


Represents a response from the model.

Summary

Public constructors

Public properties

List<Candidate>

a list of possible responses generated from the model

String?

Convenience field representing the first text part in the response, if it exists.

Public constructors

GenerateContentResponse

@VisibleForTesting(otherwise = 3)
GenerateContentResponse(candidates: List<Candidate>)

Public properties

candidates

val candidatesList<Candidate>

a list of possible responses generated from the model

text

val textString?

Convenience field representing the first text part in the response, if it exists.