Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/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.



1110
1111
1112
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1110

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

Instance Attribute Details

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

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



1083
1084
1085
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1083

def grounding_chunks
  @grounding_chunks
end

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

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



1088
1089
1090
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1088

def grounding_supports
  @grounding_supports
end

#retrieval_metadataGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RetrievalMetadata

Metadata related to retrieval in the grounding flow. Corresponds to the JSON property retrievalMetadata



1093
1094
1095
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1093

def 
  @retrieval_metadata
end

#retrieval_queriesArray<String>

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

Returns:

  • (Array<String>)


1098
1099
1100
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1098

def retrieval_queries
  @retrieval_queries
end

#search_entry_pointGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SearchEntryPoint

Google search entry point. Corresponds to the JSON property searchEntryPoint



1103
1104
1105
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1103

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


1108
1109
1110
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1108

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1115

def update!(**args)
  @grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
  @grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
  @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
  @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