Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest
- 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
-
#contents ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent>
Content of the current conversation with the model.
-
#generation_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
Content generation specification.
-
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec
Grounding specification.
-
#system_instruction ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
Base structured datatype containing multi-part content of a message.
-
#user_labels ⇒ Hash<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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest
Returns a new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest.
15530 15531 15532 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15530 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ Array<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
15498 15499 15500 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15498 def contents @contents end |
#generation_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
Content generation specification.
Corresponds to the JSON property generationSpec
15503 15504 15505 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15503 def generation_spec @generation_spec end |
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec
Grounding specification.
Corresponds to the JSON property groundingSpec
15508 15509 15510 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15508 def grounding_spec @grounding_spec end |
#system_instruction ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContent
Base structured datatype containing multi-part content of a message.
Corresponds to the JSON property systemInstruction
15513 15514 15515 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15513 def system_instruction @system_instruction end |
#user_labels ⇒ Hash<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
15528 15529 15530 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15528 def user_labels @user_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15535 15536 15537 15538 15539 15540 15541 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15535 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 |