GenerateContentResponse


class GenerateContentResponse


表示模型的响应。

摘要

公共构造函数

公共属性

List<Candidate>

模型生成的可能回答的列表

String?

一个便捷字段,表示响应中的第一个文本部分(如果有)。

公共构造函数

GenerateContentResponse

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

公共属性

候选

val candidatesList<Candidate>

模型生成的可能回答的列表

发短信

val textString?

一个便捷字段,表示响应中的第一个文本部分(如果有)。