GenerateContentResponse


class GenerateContentResponse


모델의 응답을 나타냅니다.

요약

공개 생성자

공개 속성

List<Candidate>

모델에서 생성된 가능한 응답 목록

String?

응답의 첫 번째 텍스트 부분을 나타내는 편의 필드입니다(있는 경우).

공개 생성자

GenerateContentResponse

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

공개 속성

후보

val candidatesList<Candidate>

모델에서 생성된 가능한 응답 목록

텍스트

val textString?

응답의 첫 번째 텍스트 부분(있는 경우)을 나타내는 편의 필드입니다.