View Source GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceUsageMetadata (google_api_ai_platform v0.3.0)

Usage metadata about response(s).

Attributes

  • candidatesTokenCount (type: integer(), default: nil) - Number of tokens in the response(s).
  • promptTokenCount (type: integer(), default: nil) - Number of tokens in the request.
  • totalTokenCount (type: integer(), default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceUsageMetadata{
  candidatesTokenCount: integer() | nil,
  promptTokenCount: integer() | nil,
  totalTokenCount: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.