Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource

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

Overview

Message to be used for grounding based on inline content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource

Returns a new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource.



16092
16093
16094
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16092

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

Instance Attribute Details

#attributesHash<String,String>

Attributes associated with the content. Common attributes include source ( indicating where the content was sourced from) and author (indicating the author of the content). Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


16085
16086
16087
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16085

def attributes
  @attributes
end

#grounding_factsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact>

List of facts to be used for grounding. Corresponds to the JSON property groundingFacts



16090
16091
16092
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16090

def grounding_facts
  @grounding_facts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16097
16098
16099
16100
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16097

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @grounding_facts = args[:grounding_facts] if args.key?(:grounding_facts)
end