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

View Source

Spec for pointwise metric.

Attributes

  • customOutputFormatConfig (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig.t, default: nil) - Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the score and explanation fields in the corresponding metric result will be empty.
  • metricPromptTemplate (type: String.t, default: nil) - Required. Metric prompt template for pointwise metric.
  • systemInstruction (type: String.t, default: nil) - Optional. System instructions for pointwise metric.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PointwiseMetricSpec{
    customOutputFormatConfig:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig.t()
      | nil,
    metricPromptTemplate: String.t() | nil,
    systemInstruction: String.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.