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

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

Response message for [PredictionService.CountTokens][].

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#total_billable_characters

def total_billable_characters() -> ::Integer
Returns
  • (::Integer) — The total number of billable characters counted across all instances from the request.

#total_billable_characters=

def total_billable_characters=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of billable characters counted across all instances from the request.
Returns
  • (::Integer) — The total number of billable characters counted across all instances from the request.

#total_tokens

def total_tokens() -> ::Integer
Returns
  • (::Integer) — The total number of tokens counted across all instances from the request.

#total_tokens=

def total_tokens=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of tokens counted across all instances from the request.
Returns
  • (::Integer) — The total number of tokens counted across all instances from the request.