public sealed class ModalityTokenCount : IMessage<ModalityTokenCount>, IEquatable<ModalityTokenCount>, IDeepCloneable<ModalityTokenCount>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class ModalityTokenCount.
Represents token counting info for a single modality.
Implements
IMessageModalityTokenCount, IEquatableModalityTokenCount, IDeepCloneableModalityTokenCount, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.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 |
|