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 Logprobs
build()
Logprobs.Builder
copy(Logprobs model)
Logprobs.Builder
textOffset(List<Integer> textOffset)
The text offset.Logprobs.Builder
tokenLogprobs(List<Double> tokenLogprobs)
The logarithmic probabilites of the output token.Logprobs.Builder
tokens(List<String> tokens)
The list of output tokens.Logprobs.Builder
topLogprobs(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)
-
-