Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk

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

Fact chunk for grounding check.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk

Returns a new instance of GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk.



2193
2194
2195
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2193

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

Instance Attribute Details

#chunk_textString

Text content of the fact chunk. Can be at most 10K characters long. Corresponds to the JSON property chunkText

Returns:

  • (String)


2184
2185
2186
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2184

def chunk_text
  @chunk_text
end

#sourceString

Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts, this field will contain the index of the specific fact from which this chunk was retrieved. Corresponds to the JSON property source

Returns:

  • (String)


2191
2192
2193
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2191

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2198
2199
2200
2201
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2198

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