Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk
- 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
-
#chunk_text ⇒ String
Text content of the fact chunk.
-
#source ⇒ String
Source from which this fact chunk was retrieved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk
constructor
A new instance of GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_text ⇒ String
Text content of the fact chunk. Can be at most 10K characters long.
Corresponds to the JSON property chunkText
2184 2185 2186 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2184 def chunk_text @chunk_text end |
#source ⇒ String
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
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 |