Class CountTokensResponse (1.48.0)

CountTokensResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for PredictionService.CountTokens.

Attributes

NameDescription
total_tokens int
The total number of tokens counted across all instances from the request.
total_billable_characters int
The total number of billable characters counted across all instances from the request.

Methods

CountTokensResponse

CountTokensResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for PredictionService.CountTokens.