Class ComputeTokensResponse (1.38.1)

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

Response message for ComputeTokens RPC call.

Attribute

Name
Description
tokens_info
MutableSequence[ google.cloud.aiplatform_v1.types.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.

Methods

ComputeTokensResponse

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

Response message for ComputeTokens RPC call.