Class Logprobs.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.Logprobs.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Logprobsbuild()Logprobs.Buildercopy(Logprobs model)Logprobs.BuildertextOffset(List<Integer> textOffset)The text offset.Logprobs.BuildertokenLogprobs(List<Double> tokenLogprobs)The logarithmic probabilites of the output token.Logprobs.Buildertokens(List<String> tokens)The list of output tokens.Logprobs.BuildertopLogprobs(List<Map<String,String>> topLogprobs)The logarithmic probabilities of each of the top k tokens.
-
-
-
Method Detail
-
textOffset
public Logprobs.Builder textOffset(List<Integer> textOffset)
The text offset.- Parameters:
textOffset- the value to set- Returns:
- this builder
-
tokenLogprobs
public Logprobs.Builder tokenLogprobs(List<Double> tokenLogprobs)
The logarithmic probabilites of the output token.- Parameters:
tokenLogprobs- the value to set- Returns:
- this builder
-
tokens
public Logprobs.Builder tokens(List<String> tokens)
The list of output tokens.- Parameters:
tokens- the value to set- Returns:
- this builder
-
topLogprobs
public Logprobs.Builder topLogprobs(List<Map<String,String>> topLogprobs)
The logarithmic probabilities of each of the top k tokens.- Parameters:
topLogprobs- the value to set- Returns:
- this builder
-
build
public Logprobs build()
-
copy
public Logprobs.Builder copy(Logprobs model)
-
-