View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptApiSchema (google_api_ai_platform v0.20.0)

The A2 schema of a prompt.

Attributes

  • apiSchemaVersion (type: String.t, default: nil) - The Schema version that represents changes to the API behavior.
  • executions (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution.t), default: nil) - A list of execution instances for constructing a ready-to-use prompt.
  • multimodalPrompt (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt.t, default: nil) - Multimodal prompt which embeds preambles to prompt string.
  • structuredPrompt (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.t, default: nil) - The prompt variation that stores preambles in separate fields.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptApiSchema{
    apiSchemaVersion: String.t() | nil,
    executions:
      [
        GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution.t()
      ]
      | nil,
    multimodalPrompt:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt.t()
      | nil,
    structuredPrompt:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.t()
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.