Class LogprobsResultCandidate.Builder
-
- All Implemented Interfaces:
public abstract class LogprobsResultCandidate.BuilderBuilder for LogprobsResultCandidate.
-
-
Constructor Summary
Constructors Constructor Description LogprobsResultCandidate.Builder()
-
Method Summary
Modifier and Type Method Description abstract LogprobsResultCandidate.BuilderlogProbability(Float logProbability)Setter for logProbability. LogprobsResultCandidate.BuilderclearLogProbability()Clears the value of logProbability field. abstract LogprobsResultCandidate.Buildertoken(String token)Setter for token. LogprobsResultCandidate.BuilderclearToken()Clears the value of token field. abstract LogprobsResultCandidate.BuildertokenId(Integer tokenId)Setter for tokenId. LogprobsResultCandidate.BuilderclearTokenId()Clears the value of tokenId field. abstract LogprobsResultCandidatebuild()-
-
Method Detail
-
logProbability
abstract LogprobsResultCandidate.Builder logProbability(Float logProbability)
Setter for logProbability.
logProbability: The log probability of this token. A higher value indicates that the model was more confident in this token. The log probability can be used to assess the relative likelihood of different tokens and to identify when the model is uncertain.
-
clearLogProbability
@CanIgnoreReturnValue() LogprobsResultCandidate.Builder clearLogProbability()
Clears the value of logProbability field.
-
token
abstract LogprobsResultCandidate.Builder token(String token)
Setter for token.
token: The token's string representation.
-
clearToken
@CanIgnoreReturnValue() LogprobsResultCandidate.Builder clearToken()
Clears the value of token field.
-
tokenId
abstract LogprobsResultCandidate.Builder tokenId(Integer tokenId)
Setter for tokenId.
tokenId: The token's numerical ID. While the `token` field provides the string representation of the token, the `token_id` is the numerical representation that the model uses internally. This can be useful for developers who want to build custom logic based on the model's vocabulary.
-
clearTokenId
@CanIgnoreReturnValue() LogprobsResultCandidate.Builder clearTokenId()
Clears the value of tokenId field.
-
build
abstract LogprobsResultCandidate build()
-
-
-
-