Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
- 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
-
#answer_candidate ⇒ String
Answer candidate to check.
-
#facts ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact>
List of facts for the grounding check.
-
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
Specification for the grounding check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1betaCheckGroundingRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
Returns a new instance of GoogleCloudDiscoveryengineV1betaCheckGroundingRequest.
5937 5938 5939 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_candidate ⇒ String
Answer candidate to check.
Corresponds to the JSON property answerCandidate
5925 5926 5927 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5925 def answer_candidate @answer_candidate end |
#facts ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact>
List of facts for the grounding check. We support up to 200 facts.
Corresponds to the JSON property facts
5930 5931 5932 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5930 def facts @facts end |
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
Specification for the grounding check.
Corresponds to the JSON property groundingSpec
5935 5936 5937 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5935 def grounding_spec @grounding_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5942 5943 5944 5945 5946 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5942 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) end |