View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ComputeTokensResponse (google_api_ai_platform v0.13.0)

Response message for ComputeTokens RPC call.

Attributes

  • tokensInfo (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TokensInfo.t), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ComputeTokensResponse{
    tokensInfo:
      [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TokensInfo.t()]
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.