Class ChatCompletionTokenLogprobTopLogprobsInner
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionTokenLogprobTopLogprobsInner
ChatCompletionTokenLogprobTopLogprobsInner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBytesItem(Integer bytesItem) Add one bytes instance to thisChatCompletionTokenLogprobTopLogprobsInner.Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.booleangetBytes()A list of integers representing the UTF-8 bytes representation of the token.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionTokenLogprobTopLogprobsInner.The log probability of this token.getToken()The token.inthashCode()logprob(BigDecimal logprob) Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.voidSet the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidsetLogprob(BigDecimal logprob) Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidSet the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.toMap()Get the value of all properties of thisChatCompletionTokenLogprobTopLogprobsInnerinstance including unrecognized properties.toString()
-
Constructor Details
-
ChatCompletionTokenLogprobTopLogprobsInner
public ChatCompletionTokenLogprobTopLogprobsInner()
-
-
Method Details
-
token
Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
token- The token.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
getToken
The token.- Returns:
- token The token of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setToken
Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
token- The token.
-
logprob
Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
logprob- The log probability of this token.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
getLogprob
The log probability of this token.- Returns:
- logprob The logprob of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setLogprob
Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
logprob- The log probability of this token.
-
bytes
Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
bytes- A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
addBytesItem
Add one bytes instance to thisChatCompletionTokenLogprobTopLogprobsInner.- Parameters:
bytesItem- The bytes that should be added- Returns:
- The same instance of type
ChatCompletionTokenLogprobTopLogprobsInner
-
getBytes
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.- Returns:
- bytes The bytes of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setBytes
Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
bytes- A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionTokenLogprobTopLogprobsInner.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisChatCompletionTokenLogprobTopLogprobsInnerinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
toMap()instead.