Show / Hide Table of Contents

Class Usage

Usage statistics for the completion request.

Inheritance
object
Usage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class Usage

Properties

CompletionTokens

Declaration
[JsonProperty(PropertyName = "completionTokens")]
public int? CompletionTokens { get; set; }
Property Value
Type Description
int?

Number of tokens in the generated completion.

CompletionTokensDetails

Declaration
[JsonProperty(PropertyName = "completionTokensDetails")]
public CompletionTokensDetails CompletionTokensDetails { get; set; }
Property Value
Type Description
CompletionTokensDetails

PromptTokens

Declaration
[JsonProperty(PropertyName = "promptTokens")]
public int? PromptTokens { get; set; }
Property Value
Type Description
int?

Number of tokens in the prompt.

PromptTokensDetails

Declaration
[JsonProperty(PropertyName = "promptTokensDetails")]
public PromptTokensDetails PromptTokensDetails { get; set; }
Property Value
Type Description
PromptTokensDetails

TotalTokens

Declaration
[JsonProperty(PropertyName = "totalTokens")]
public int? TotalTokens { get; set; }
Property Value
Type Description
int?

Total number of tokens used in the request (prompt + completion).

In this article
Back to top