Table of Contents

Class GeminiTokenCountResponse

A response from CountTokens.

public class GeminiTokenCountResponse
Inheritance
GeminiTokenCountResponse
Extension Methods

Fields

CachedContentTokenCount

Number of tokens in the cached part of the prompt (the cached content).

public int CachedContentTokenCount

Field Value

int

TotalTokens

The number of tokens that the model tokenizes the prompt into.

public int TotalTokens

Field Value

int

Remarks

Always non-negative. When cachedContent is set, this is still the total effective prompt size.I.e.this includes the number of tokens in the cached content.

Cached content is not supported in this package.