Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingRequest

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

Request message for GroundedGenerationService.CheckGrounding method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCheckGroundingRequest

Returns a new instance of GoogleCloudDiscoveryengineV1betaCheckGroundingRequest.



12590
12591
12592
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12590

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

Instance Attribute Details

#answer_candidateString

Answer candidate to check. It can have a maximum length of 4096 tokens. Corresponds to the JSON property answerCandidate

Returns:

  • (String)


12563
12564
12565
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12563

def answer_candidate
  @answer_candidate
end

#factsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact>

List of facts for the grounding check. We support up to 200 facts. Corresponds to the JSON property facts



12568
12569
12570
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12568

def facts
  @facts
end

#grounding_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec

Specification for the grounding check. Corresponds to the JSON property groundingSpec



12573
12574
12575
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12573

def grounding_spec
  @grounding_spec
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>)


12588
12589
12590
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12588

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12595
12596
12597
12598
12599
12600
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12595

def update!(**args)
  @answer_candidate = args[:answer_candidate] if args.key?(:answer_candidate)
  @facts = args[:facts] if args.key?(:facts)
  @grounding_spec = args[:grounding_spec] if args.key?(:grounding_spec)
  @user_labels = args[:user_labels] if args.key?(:user_labels)
end