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.



11585
11586
11587
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11585

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

Instance Attribute Details

#grounding_chunksArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunk>

List of supporting references retrieved from specified grounding source. Corresponds to the JSON property groundingChunks



11563
11564
11565
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11563

def grounding_chunks
  @grounding_chunks
end

#grounding_supportsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingSupport>

Optional. List of grounding support. Corresponds to the JSON property groundingSupports



11568
11569
11570
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11568

def grounding_supports
  @grounding_supports
end

#retrieval_queriesArray<String>

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

Returns:

  • (Array<String>)


11573
11574
11575
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11573

def retrieval_queries
  @retrieval_queries
end

#search_entry_pointGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchEntryPoint

Google search entry point. Corresponds to the JSON property searchEntryPoint



11578
11579
11580
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11578

def search_entry_point
  @search_entry_point
end

#web_search_queriesArray<String>

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

Returns:

  • (Array<String>)


11583
11584
11585
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11583

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11590
11591
11592
11593
11594
11595
11596
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11590

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