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.



10914
10915
10916
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10914

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



10907
10908
10909
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10907

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


10912
10913
10914
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10912

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10919
10920
10921
10922
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10919

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