Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/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) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest

Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest.



5284
5285
5286
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5284

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

Instance Attribute Details

#contentsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent>

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



5252
5253
5254
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5252

def contents
  @contents
end

#generation_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec

Content generation specification. Corresponds to the JSON property generationSpec



5257
5258
5259
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5257

def generation_spec
  @generation_spec
end

#grounding_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec

Grounding specification. Corresponds to the JSON property groundingSpec



5262
5263
5264
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5262

def grounding_spec
  @grounding_spec
end

#system_instructionGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContent

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



5267
5268
5269
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5267

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>)


5282
5283
5284
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5282

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5289
5290
5291
5292
5293
5294
5295
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5289

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