topCandidates

@CanIgnoreReturnValue()
public LogprobsResult.Builder topCandidates(Array<LogprobsResultTopCandidates> topCandidates)

Setter for topCandidates.

topCandidates: A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps.


@CanIgnoreReturnValue()
public LogprobsResult.Builder topCandidates(Array<LogprobsResultTopCandidates.Builder> topCandidatesBuilders)

Setter for topCandidates builder.

topCandidates: A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps.