Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest

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

Returns a new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest.



15899
15900
15901
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15899

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

Instance Attribute Details

#contentsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent>

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



15867
15868
15869
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15867

def contents
  @contents
end

#generation_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec

Content generation specification. Corresponds to the JSON property generationSpec



15872
15873
15874
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15872

def generation_spec
  @generation_spec
end

#grounding_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec

Grounding specification. Corresponds to the JSON property groundingSpec



15877
15878
15879
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15877

def grounding_spec
  @grounding_spec
end

#system_instructionGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent

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



15882
15883
15884
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15882

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


15897
15898
15899
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15897

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15904
15905
15906
15907
15908
15909
15910
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15904

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