候選


class Candidate


模型回覆的一部分。除了回應的 Content 之外,還包含 FinishReason

摘要

巢狀型別

@IntDef(value = [0, 1])
annotation Candidate.FinishReason

Candidate 相關聯的完成原因

公用建構函式

@VisibleForTesting(otherwise = 3)
Candidate(content: Content, @Candidate.FinishReason finishReason: Int?)

公用建構函式

候選

@VisibleForTesting(otherwise = 3)
Candidate(content: Content, @Candidate.FinishReason finishReason: Int? = null)

公開屬性

內容

val contentContent

finishReason

val finishReasonInt?