GenerateContentResponse


class GenerateContentResponse


代表模型的回應。

摘要

公用建構函式

公開屬性

List<Candidate>

模型產生的可能回覆清單

String?

方便欄位,代表回應中的第一個文字部分 (如有)。

公用建構函式

GenerateContentResponse

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

公開屬性

待選項目

val candidatesList<Candidate>

模型產生的可能回應清單

text

val textString?

方便欄位,代表回應中的第一個文字部分 (如有)。