public sealed class TokensInfo : IMessage<TokensInfo>, IEquatable<TokensInfo>, IDeepCloneable<TokensInfo>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class TokensInfo.
Tokens info with a list of tokens and the corresponding list of token ids.
Implements
IMessageTokensInfo, IEquatableTokensInfo, IDeepCloneableTokensInfo, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
TokensInfo()
public TokensInfo()TokensInfo(TokensInfo)
public TokensInfo(TokensInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
TokensInfo |
Properties
Role
public string Role { get; set; }Optional. Optional fields for the role from the corresponding Content.
| Property Value | |
|---|---|
| Type | Description |
string |
|
TokenIds
public RepeatedField<long> TokenIds { get; }A list of token ids from the input.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldlong |
|
Tokens
public RepeatedField<ByteString> Tokens { get; }A list of tokens from the input.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldByteString |
|