View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1LogprobsResultCandidate (google_api_ai_platform v0.24.0)

Candidate for the logprobs token and score.

Attributes

  • logProbability (type: number(), default: nil) - The candidate's log probability.
  • token (type: String.t, default: nil) - The candidate's token string value.
  • tokenId (type: integer(), default: nil) - The candidate's token id value.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1LogprobsResultCandidate{
    logProbability: number() | nil,
    token: String.t() | nil,
    tokenId: integer() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.