Class LogprobsResult.Builder
- Enclosing class:
- LogprobsResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LogprobsResultbuild()chosenCandidates(LogprobsResultCandidate... chosenCandidates) Setter for chosenCandidates.chosenCandidates(LogprobsResultCandidate.Builder... chosenCandidatesBuilders) Setter for chosenCandidates builder.abstract LogprobsResult.BuilderchosenCandidates(List<LogprobsResultCandidate> chosenCandidates) Setter for chosenCandidates.Clears the value of chosenCandidates field.Clears the value of topCandidates field.topCandidates(LogprobsResultTopCandidates... topCandidates) Setter for topCandidates.topCandidates(LogprobsResultTopCandidates.Builder... topCandidatesBuilders) Setter for topCandidates builder.abstract LogprobsResult.BuildertopCandidates(List<LogprobsResultTopCandidates> topCandidates) Setter for topCandidates.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chosenCandidates
public 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 public LogprobsResult.Builder chosenCandidates(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 public LogprobsResult.Builder chosenCandidates(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
Clears the value of chosenCandidates field. -
topCandidates
public 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 public LogprobsResult.Builder topCandidates(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 public LogprobsResult.Builder topCandidates(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
Clears the value of topCandidates field. -
build
-