View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CountTokensRequest (google_api_ai_platform v0.2.0)

Request message for PredictionService.CountTokens.

Attributes

  • contents (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t), default: nil) - Required. Input content.
  • instances (type: list(any()), default: nil) - Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
  • model (type: String.t, default: nil) - Required. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CountTokensRequest{
  contents:
    [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()] | nil,
  instances: [any()] | nil,
  model: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.