Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadata

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

Overview

Metadata returned to client when grounding is enabled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingMetadata

Returns a new instance of GoogleCloudAiplatformV1GroundingMetadata.



9863
9864
9865
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9863

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

Instance Attribute Details

#grounding_attributionsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution>

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



9856
9857
9858
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9856

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


9861
9862
9863
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9861

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9868
9869
9870
9871
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9868

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