Show / Hide Table of Contents

Class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata

Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.

Inheritance
object
GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Aiplatform.v1.Data
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata : IDirectResponseSchema

Properties

CacheTokensDetails

Output only. A detailed breakdown of the token count for each modality in the cached content.

Declaration
[JsonProperty("cacheTokensDetails")]
public virtual IList<GoogleCloudAiplatformV1ModalityTokenCount> CacheTokensDetails { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1ModalityTokenCount>

CachedContentTokenCount

Output only. The number of tokens in the cached content that was used for this request.

Declaration
[JsonProperty("cachedContentTokenCount")]
public virtual int? CachedContentTokenCount { get; set; }
Property Value
Type Description
int?

CandidatesTokenCount

The total number of tokens in the generated candidates.

Declaration
[JsonProperty("candidatesTokenCount")]
public virtual int? CandidatesTokenCount { get; set; }
Property Value
Type Description
int?

CandidatesTokensDetails

Output only. A detailed breakdown of the token count for each modality in the generated candidates.

Declaration
[JsonProperty("candidatesTokensDetails")]
public virtual IList<GoogleCloudAiplatformV1ModalityTokenCount> CandidatesTokensDetails { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1ModalityTokenCount>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

PromptTokenCount

The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When cached_content is set, this also includes the number of tokens in the cached content.

Declaration
[JsonProperty("promptTokenCount")]
public virtual int? PromptTokenCount { get; set; }
Property Value
Type Description
int?

PromptTokensDetails

Output only. A detailed breakdown of the token count for each modality in the prompt.

Declaration
[JsonProperty("promptTokensDetails")]
public virtual IList<GoogleCloudAiplatformV1ModalityTokenCount> PromptTokensDetails { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1ModalityTokenCount>

ThoughtsTokenCount

Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable.

Declaration
[JsonProperty("thoughtsTokenCount")]
public virtual int? ThoughtsTokenCount { get; set; }
Property Value
Type Description
int?

ToolUsePromptTokenCount

Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.

Declaration
[JsonProperty("toolUsePromptTokenCount")]
public virtual int? ToolUsePromptTokenCount { get; set; }
Property Value
Type Description
int?

ToolUsePromptTokensDetails

Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.

Declaration
[JsonProperty("toolUsePromptTokensDetails")]
public virtual IList<GoogleCloudAiplatformV1ModalityTokenCount> ToolUsePromptTokensDetails { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1ModalityTokenCount>

TotalTokenCount

The total number of tokens for the entire request. This is the sum of prompt_token_count, candidates_token_count, tool_use_prompt_token_count, and thoughts_token_count.

Declaration
[JsonProperty("totalTokenCount")]
public virtual int? TotalTokenCount { get; set; }
Property Value
Type Description
int?

TrafficType

Output only. The traffic type for this request.

Declaration
[JsonProperty("trafficType")]
public virtual string TrafficType { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX