Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecMultimodalPrompt

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Prompt variation that embeds preambles to prompt string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecMultimodalPrompt

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecMultimodalPrompt.



53462
53463
53464
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53462

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#prompt_messageGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage

The prompt message that aligns with the prompt message in google.cloud. aiplatform.master.GenerateContentRequest. Corresponds to the JSON property promptMessage



53460
53461
53462
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53460

def prompt_message
  @prompt_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53467
53468
53469
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53467

def update!(**args)
  @prompt_message = args[:prompt_message] if args.key?(:prompt_message)
end