Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec

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

Overview

Specification of the prompt to use with the model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec.



5643
5644
5645
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5643

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

Instance Attribute Details

#preambleString

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. Corresponds to the JSON property preamble

Returns:

  • (String)


5641
5642
5643
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5641

def preamble
  @preamble
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5648
5649
5650
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5648

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