Class TokenUsagePromptTokensDetails
java.lang.Object
com.sap.ai.sdk.orchestration.model.TokenUsagePromptTokensDetails
Details of the prompt tokens.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TokenUsagePromptTokensDetails. -
Method Summary
Modifier and TypeMethodDescriptionaudioTokens(Integer audioTokens) Set the audioTokens of thisTokenUsagePromptTokensDetailsinstance and return the same instance.cachedTokens(Integer cachedTokens) Set the cachedTokens of thisTokenUsagePromptTokensDetailsinstance and return the same instance.create()Create a newTokenUsagePromptTokensDetailsinstance.booleanAudio input tokens present in the prompt.Cached tokens present in the prompt.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTokenUsagePromptTokensDetails.inthashCode()voidsetAudioTokens(Integer audioTokens) Set the audioTokens of thisTokenUsagePromptTokensDetailsinstance.voidsetCachedTokens(Integer cachedTokens) Set the cachedTokens of thisTokenUsagePromptTokensDetailsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTokenUsagePromptTokensDetailsinstance.toMap()Get the value of all properties of thisTokenUsagePromptTokensDetailsinstance including unrecognized properties.toString()
-
Constructor Details
-
TokenUsagePromptTokensDetails
protected TokenUsagePromptTokensDetails()Default constructor for TokenUsagePromptTokensDetails.
-
-
Method Details
-
audioTokens
Set the audioTokens of thisTokenUsagePromptTokensDetailsinstance and return the same instance.- Parameters:
audioTokens- Audio input tokens present in the prompt.- Returns:
- The same instance of this
TokenUsagePromptTokensDetailsclass
-
getAudioTokens
Audio input tokens present in the prompt.- Returns:
- audioTokens The audioTokens of this
TokenUsagePromptTokensDetailsinstance.
-
setAudioTokens
Set the audioTokens of thisTokenUsagePromptTokensDetailsinstance.- Parameters:
audioTokens- Audio input tokens present in the prompt.
-
cachedTokens
Set the cachedTokens of thisTokenUsagePromptTokensDetailsinstance and return the same instance.- Parameters:
cachedTokens- Cached tokens present in the prompt.- Returns:
- The same instance of this
TokenUsagePromptTokensDetailsclass
-
getCachedTokens
Cached tokens present in the prompt.- Returns:
- cachedTokens The cachedTokens of this
TokenUsagePromptTokensDetailsinstance.
-
setCachedTokens
Set the cachedTokens of thisTokenUsagePromptTokensDetailsinstance.- Parameters:
cachedTokens- Cached tokens present in the prompt.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTokenUsagePromptTokensDetails.- 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 thisTokenUsagePromptTokensDetailsinstance.- 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 thisTokenUsagePromptTokensDetailsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTokenUsagePromptTokensDetailsinstance. 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
-
create
Create a newTokenUsagePromptTokensDetailsinstance. No arguments are required.
-
toMap()instead.