GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount (google_api_ai_platform v0.27.0)

View Source

Represents token counting info for a single modality.

Attributes

  • modality (type: String.t, default: nil) - The modality associated with this token count.
  • tokenCount (type: integer(), default: nil) - Number of tokens.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount{
  modality: String.t() | nil,
  tokenCount: integer() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.