Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest

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

Top-level message sent by the client for the GenerateGroundedContent method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest.



10386
10387
10388
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10386

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

Instance Attribute Details

#contentsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent>

Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. Corresponds to the JSON property contents



10354
10355
10356
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10354

def contents
  @contents
end

#generation_specGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerationSpec

Content generation specification. Corresponds to the JSON property generationSpec



10359
10360
10361
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10359

def generation_spec
  @generation_spec
end

#grounding_specGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSpec

Grounding specification. Corresponds to the JSON property groundingSpec



10364
10365
10366
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10364

def grounding_spec
  @grounding_spec
end

#system_instructionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent

Base structured datatype containing multi-part content of a message. Corresponds to the JSON property systemInstruction



10369
10370
10371
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10369

def system_instruction
  @system_instruction
end

#user_labelsHash<String,String>

The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See Google Cloud Document for more details. Corresponds to the JSON property userLabels

Returns:

  • (Hash<String,String>)


10384
10385
10386
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10384

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10391
10392
10393
10394
10395
10396
10397
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10391

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @generation_spec = args[:generation_spec] if args.key?(:generation_spec)
  @grounding_spec = args[:grounding_spec] if args.key?(:grounding_spec)
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
  @user_labels = args[:user_labels] if args.key?(:user_labels)
end