Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Metadata returned to client when grounding is enabled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingMetadata

Returns a new instance of GoogleCloudAiplatformV1beta1GroundingMetadata.



10216
10217
10218
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10216

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

Instance Attribute Details

#grounding_attributionsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution>

Optional. List of grounding attributions. Corresponds to the JSON property groundingAttributions



10209
10210
10211
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10209

def grounding_attributions
  @grounding_attributions
end

#web_search_queriesArray<String>

Optional. Web search queries for the following-up web search. Corresponds to the JSON property webSearchQueries

Returns:

  • (Array<String>)


10214
10215
10216
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10214

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10221
10222
10223
10224
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10221

def update!(**args)
  @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
end