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.



5371
5372
5373
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5371

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



5339
5340
5341
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5339

def contents
  @contents
end

#generation_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec

Content generation specification. Corresponds to the JSON property generationSpec



5344
5345
5346
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5344

def generation_spec
  @generation_spec
end

#grounding_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec

Grounding specification. Corresponds to the JSON property groundingSpec



5349
5350
5351
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5349

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



5354
5355
5356
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5354

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


5369
5370
5371
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5369

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5376
5377
5378
5379
5380
5381
5382
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5376

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