View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TokensInfo (google_api_ai_platform v0.15.0)

Tokens info with a list of tokens and the corresponding list of token ids.

Attributes

  • role (type: String.t, default: nil) - Optional. Optional fields for the role from the corresponding Content.
  • tokenIds (type: list(String.t), default: nil) - A list of token ids from the input.
  • tokens (type: list(String.t), default: nil) - A list of tokens from the input.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TokensInfo{
  role: String.t() | nil,
  tokenIds: [String.t()] | nil,
  tokens: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.