Table of Contents

Class ModalityTokenCount

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents token counting info for a single modality.

public class ModalityTokenCount
Inheritance
ModalityTokenCount
Inherited Members
Extension Methods

Properties

Modality

The modality associated with this token count.

[JsonPropertyName("modality")]
public Modality Modality { get; set; }

Property Value

Modality

TokenCount

Number of tokens.

[JsonPropertyName("tokenCount")]
public int TokenCount { get; set; }

Property Value

int

See Also