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

View Source

Prompt variation for Translation use case.

Attributes

  • example (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample.t, default: nil) - The translation example.
  • option (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption.t, default: nil) - The translation option.
  • promptMessage (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.t, default: nil) - The prompt message.
  • sourceLanguageCode (type: String.t, default: nil) - The source language code.
  • targetLanguageCode (type: String.t, default: nil) - The target language code.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt{
    example:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample.t()
      | nil,
    option:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption.t()
      | nil,
    promptMessage:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.t()
      | nil,
    sourceLanguageCode: String.t() | nil,
    targetLanguageCode: String.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.