Cloud AI Platform v1beta1 API - Class TokensInfo (1.0.0-beta09)

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

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class TokensInfo.

Tokens info with a list of tokens and the corresponding list of token ids.

Inheritance

object > TokensInfo

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

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