Class CountTokensRequest (1.36.4)

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

Request message for PredictionService.CountTokens.

Attributes

Name Description
endpoint str
Required. The name of the Endpoint requested to perform token counting. Format: projects/{project}/locations/{location}/endpoints/{endpoint}
instances MutableSequence[google.protobuf.struct_pb2.Value]
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.

Methods

CountTokensRequest

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

Request message for PredictionService.CountTokens.