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.



10203
10204
10205
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10203

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



10191
10192
10193
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10191

def grounding_attributions
  @grounding_attributions
end

#retrieval_queriesArray<String>

Optional. Queries executed by the retrieval tools. Corresponds to the JSON property retrievalQueries

Returns:

  • (Array<String>)


10196
10197
10198
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10196

def retrieval_queries
  @retrieval_queries
end

#web_search_queriesArray<String>

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

Returns:

  • (Array<String>)


10201
10202
10203
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10201

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10208
10209
10210
10211
10212
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10208

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