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.



15723
15724
15725
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15723

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


15716
15717
15718
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15716

def attributes
  @attributes
end

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

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



15721
15722
15723
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15721

def grounding_facts
  @grounding_facts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15728
15729
15730
15731
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15728

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