Cloud AI Platform v1 API - Class ModalityTokenCount (3.15.0)

public sealed class ModalityTokenCount : IMessage<ModalityTokenCount>, IEquatable<ModalityTokenCount>, IDeepCloneable<ModalityTokenCount>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class ModalityTokenCount.

Represents token counting info for a single modality.

Inheritance

object > ModalityTokenCount

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ModalityTokenCount()

public ModalityTokenCount()

ModalityTokenCount(ModalityTokenCount)

public ModalityTokenCount(ModalityTokenCount other)
Parameter
Name Description
other ModalityTokenCount

Properties

Modality

public Modality Modality { get; set; }

The modality associated with this token count.

Property Value
Type Description
Modality

TokenCount

public int TokenCount { get; set; }

Number of tokens.

Property Value
Type Description
int