CompletionsUsagePromptTokensDetails Class
- java.
lang. Object - com.
azure. ai. openai. models. CompletionsUsagePromptTokensDetails
- com.
Implements
public final class CompletionsUsagePromptTokensDetails
implements JsonSerializable<CompletionsUsagePromptTokensDetails>
The CompletionsUsagePromptTokensDetails model.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Completions |
fromJson(JsonReader jsonReader)
Reads an instance of Completions |
Integer |
getCachedTokens()
Get the cached |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static CompletionsUsagePromptTokensDetails fromJson(JsonReader jsonReader)
Reads an instance of CompletionsUsagePromptTokensDetails from the JsonReader.
Parameters:
Returns:
Throws:
getCachedTokens
public Integer getCachedTokens()
Get the cachedTokens property: The number of cached prompt tokens.
Returns:
toJson
Applies to
Azure SDK for Java