Class CompletionUsageCompletionTokensDetails
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.CompletionUsageCompletionTokensDetails
Breakdown of tokens used in a completion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCompletionUsageCompletionTokensDetails.Tokens generated by the model for reasoning.inthashCode()reasoningTokens(Integer reasoningTokens) Set the reasoningTokens of thisCompletionUsageCompletionTokensDetailsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCompletionUsageCompletionTokensDetailsinstance.voidsetReasoningTokens(Integer reasoningTokens) Set the reasoningTokens of thisCompletionUsageCompletionTokensDetailsinstance.toMap()Get the value of all properties of thisCompletionUsageCompletionTokensDetailsinstance including unrecognized properties.toString()
-
Constructor Details
-
CompletionUsageCompletionTokensDetails
public CompletionUsageCompletionTokensDetails()
-
-
Method Details
-
reasoningTokens
@Nonnull public CompletionUsageCompletionTokensDetails reasoningTokens(@Nullable Integer reasoningTokens) Set the reasoningTokens of thisCompletionUsageCompletionTokensDetailsinstance and return the same instance.- Parameters:
reasoningTokens- Tokens generated by the model for reasoning.- Returns:
- The same instance of this
CompletionUsageCompletionTokensDetailsclass
-
getReasoningTokens
Tokens generated by the model for reasoning.- Returns:
- reasoningTokens The reasoningTokens of this
CompletionUsageCompletionTokensDetailsinstance.
-
setReasoningTokens
Set the reasoningTokens of thisCompletionUsageCompletionTokensDetailsinstance.- Parameters:
reasoningTokens- Tokens generated by the model for reasoning.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCompletionUsageCompletionTokensDetails.- 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 thisCompletionUsageCompletionTokensDetailsinstance.- 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 thisCompletionUsageCompletionTokensDetailsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCompletionUsageCompletionTokensDetailsinstance. 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.