Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ComputeTokensResponse (v0.44.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ComputeTokensResponse.

Response message for ComputeTokens RPC call.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#tokens_info

def tokens_info() -> ::Array<::Google::Cloud::AIPlatform::V1::TokensInfo>
Returns
  • (::Array<::Google::Cloud::AIPlatform::V1::TokensInfo>) — Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.

#tokens_info=

def tokens_info=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::TokensInfo>
Parameter
  • value (::Array<::Google::Cloud::AIPlatform::V1::TokensInfo>) — Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
Returns
  • (::Array<::Google::Cloud::AIPlatform::V1::TokensInfo>) — Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.