Class LogprobsResult.Builder
-
- All Implemented Interfaces:
public abstract class LogprobsResult.BuilderBuilder for LogprobsResult.
-
-
Constructor Summary
Constructors Constructor Description LogprobsResult.Builder()
-
Method Summary
-
-
Method Detail
-
chosenCandidates
abstract LogprobsResult.Builder chosenCandidates(List<LogprobsResultCandidate> chosenCandidates)
Setter for chosenCandidates.
chosenCandidates: A list of the chosen candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. Note that the chosen candidate might not be in `top_candidates`.
-
chosenCandidates
@CanIgnoreReturnValue() LogprobsResult.Builder chosenCandidates(Array<LogprobsResultCandidate> chosenCandidates)
Setter for chosenCandidates.
chosenCandidates: A list of the chosen candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. Note that the chosen candidate might not be in `top_candidates`.
-
chosenCandidates
@CanIgnoreReturnValue() LogprobsResult.Builder chosenCandidates(Array<LogprobsResultCandidate.Builder> chosenCandidatesBuilders)
Setter for chosenCandidates builder.
chosenCandidates: A list of the chosen candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. Note that the chosen candidate might not be in `top_candidates`.
-
clearChosenCandidates
@CanIgnoreReturnValue() LogprobsResult.Builder clearChosenCandidates()
Clears the value of chosenCandidates field.
-
topCandidates
abstract LogprobsResult.Builder topCandidates(List<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.
-
topCandidates
@CanIgnoreReturnValue() 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.
-
topCandidates
@CanIgnoreReturnValue() 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.
-
clearTopCandidates
@CanIgnoreReturnValue() LogprobsResult.Builder clearTopCandidates()
Clears the value of topCandidates field.
-
logProbabilitySum
abstract LogprobsResult.Builder logProbabilitySum(Float logProbabilitySum)
Setter for logProbabilitySum.
logProbabilitySum: Sum of log probabilities for all tokens. This field is not supported in Vertex AI.
-
clearLogProbabilitySum
@CanIgnoreReturnValue() LogprobsResult.Builder clearLogProbabilitySum()
Clears the value of logProbabilitySum field.
-
build
abstract LogprobsResult build()
-
-
-
-