Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource

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

Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource.



5564
5565
5566
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5564

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


5557
5558
5559
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5557

def attributes
  @attributes
end

#grounding_factsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact>

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



5562
5563
5564
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5562

def grounding_facts
  @grounding_facts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5569
5570
5571
5572
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5569

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